switched to 256 bit AES

This commit is contained in:
ultra
2012-05-03 18:28:23 -04:00
parent 7df8f5d21d
commit c0a61834f6

View File

@@ -114,7 +114,7 @@
return;
}
var titlehash = hashTitle(title);
var crypted = sjcl.encrypt(key, $("#data").val(), {iter: 2000});
var crypted = sjcl.encrypt(key, $("#data").val(), {iter: 2000, ks: 256});
setKVSItem(titlehash, crypted);
if(curSel != null && curSelName != title) {
pads[$.inArray(curSelName, pads)] = title;
@@ -135,7 +135,7 @@
}
function savePads() {
var crypted = sjcl.encrypt(key, JSON.stringify(pads), {iter: 2000});
var crypted = sjcl.encrypt(key, JSON.stringify(pads), {iter: 2000, ks: 256});
setKVSItem(hashSomething("pads"), crypted);
}
@@ -345,4 +345,4 @@
Secured using <a href="http://crypto.stanford.edu/sjcl/">SJCL</a> with AES-256 in CCM mode and PBKDF2 using SHA256 with 2000 iterations
</footer>
</body>
</html>
</html>