using Base64 instead Hex for storageSalt

This commit is contained in:
Mario Colque 2014-04-30 16:36:20 -03:00
parent 9eec30a729
commit ecd979493a
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ function Passphrase(config) {
Passphrase.prototype.get = function(password) {
var hash = CryptoJS.SHA256(CryptoJS.SHA256(password));
var salt = CryptoJS.enc.Hex.parse(this.salt);
var salt = CryptoJS.enc.Base64.parse(this.salt);
var key512 = CryptoJS.PBKDF2(hash, salt, { keySize: 512/32, iterations: this.iterations });
return key512;