fix: Passphrase getting generated correctly
This commit is contained in:
parent
40a13ecef8
commit
df52a0ef95
4 changed files with 214 additions and 5 deletions
|
|
@ -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!@#$%^&*(){}[]\|/?.>,<=+-_`~åéþ䲤þçæ¶');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue