fix link + decrypt password

This commit is contained in:
Matias Alejo Garcia 2014-05-07 09:55:31 -03:00
commit 542943c29f
2 changed files with 6 additions and 3 deletions

View file

@ -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;
};