mirror of https://github.com/moparisthebest/mail
Update pbkdf2.js
This commit is contained in:
parent
580baa34d2
commit
f2dcb572ad
|
@ -7,7 +7,7 @@ define(['node-forge'], function(forge) {
|
||||||
var self = {};
|
var self = {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PBKDF2-HMAC-SHA1 key derivation with a constant salt and 1000 iterations
|
* PBKDF2-HMAC-SHA1 key derivation with a random salt and 1000 iterations
|
||||||
* @param password [String] The password in UTF8
|
* @param password [String] The password in UTF8
|
||||||
* @param salt [String] The base64 encoded salt
|
* @param salt [String] The base64 encoded salt
|
||||||
* @param keySize [Number] The key size in bits
|
* @param keySize [Number] The key size in bits
|
||||||
|
@ -21,4 +21,4 @@ define(['node-forge'], function(forge) {
|
||||||
};
|
};
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue