fix: Passphrase getting generated correctly

This commit is contained in:
Esteban Ordano 2014-11-03 23:29:09 -03:00
commit df52a0ef95
4 changed files with 214 additions and 5 deletions

View file

@ -48,6 +48,9 @@ describe('crypto utils', function() {
var phrase = cryptoUtils.kdf(t.word, t.salt, t.iterations);
phrase.should.equal(t.phrase);
});
it('should generate a passphrase from weird chars', function() {
var phrase = cryptoUtils.kdf('Pwd123!@#$%^&*(){}[]\|/?.>,<=+-_`~åéþ䲤þçæ¶');
});
});