fix link + decrypt password
This commit is contained in:
parent
67a2cf386d
commit
542943c29f
2 changed files with 6 additions and 3 deletions
|
|
@ -33,8 +33,11 @@ Storage.prototype._encryptObj = function(obj) {
|
|||
};
|
||||
|
||||
Storage.prototype._decrypt = function(base64) {
|
||||
var decrypted = CryptoJS.AES.decrypt(base64, this._getPassphrase());
|
||||
var decryptedStr = decrypted.toString(CryptoJS.enc.Utf8);
|
||||
var decryptedStr=null;
|
||||
try {
|
||||
var decrypted = CryptoJS.AES.decrypt(base64, this._getPassphrase());
|
||||
decryptedStr = decrypted.toString(CryptoJS.enc.Utf8);
|
||||
} catch (e) {}
|
||||
return decryptedStr;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue