switched to 256 bit AES
This commit is contained in:
@@ -114,7 +114,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var titlehash = hashTitle(title);
|
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);
|
setKVSItem(titlehash, crypted);
|
||||||
if(curSel != null && curSelName != title) {
|
if(curSel != null && curSelName != title) {
|
||||||
pads[$.inArray(curSelName, pads)] = title;
|
pads[$.inArray(curSelName, pads)] = title;
|
||||||
@@ -135,7 +135,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function savePads() {
|
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);
|
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
|
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>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user