mirror of https://github.com/BTCPrivate/copay.git
using Base64 instead Hex for storageSalt
This commit is contained in:
parent
9eec30a729
commit
ecd979493a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue