grmpf, forgot to commit the actual changes...

This commit is contained in:
git@daemon.de
2013-09-12 23:32:42 +02:00
parent 10d38a0000
commit b8df33061b
7 changed files with 158 additions and 220 deletions

View File

@@ -17,12 +17,7 @@ function hex2a(hex) {
return str;
}
function decryptimportOLD(pass, data) {
var enpass = CryptoJS.SHA512(pass).toString(CryptoJS.enc.Base64);
var clear = CryptoJS.AES.decrypt(data, enpass);
return unescape(hex2a(clear.toString()));
}
// decrypt data
function decryptimport(hash, data) {
var clear = CryptoJS.AES.decrypt(data, hash);
return unescape(hex2a(clear.toString()));