fix compatibility issues
This commit is contained in:
parent
7207f03bd1
commit
7942048dd1
7 changed files with 115 additions and 43 deletions
|
|
@ -49,7 +49,7 @@ describe('crypto utils', function() {
|
|||
phrase.should.equal(t.phrase);
|
||||
});
|
||||
it('should generate a passphrase from weird chars', function() {
|
||||
var phrase = cryptoUtils.kdf('Pwd123!@#$%^&*(){}[]\|/?.>,<=+-_`~åéþ䲤þçæ¶');
|
||||
var phrase = cryptoUtils.kdf('Pwd123!@#$%^&*(){}[]\|/?.>,<=+-_`~åéþ䲤þçæ¶', tests[0].salt, 100);
|
||||
var expected = 'CZwb5KdikvZHVsEoZUdJckAy+yyzGnd++XhyqxJXbc30'
|
||||
+ 'pEoO+WqHgqBbdf0gn2wiyWZv3zymB+7L75Xnz3uSlg==';
|
||||
phrase.should.equal(expected);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue