mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
turning off random iv works
This commit is contained in:
parent
4cc368fad9
commit
4abe395d16
|
@ -64,7 +64,7 @@ function doEncrypt() {
|
||||||
mode:v.mode,
|
mode:v.mode,
|
||||||
ts:parseInt(v.tag),
|
ts:parseInt(v.tag),
|
||||||
ks:parseInt(v.keysize) };
|
ks:parseInt(v.keysize) };
|
||||||
if (!v.freshiv || !usedIvs[v.iv]) { iv:v.iv; }
|
if (!v.freshiv || !usedIvs[v.iv]) { p.iv = v.iv; }
|
||||||
if (!v.freshsalt || !usedSalts[v.salt]) { p.salt = v.salt; }
|
if (!v.freshsalt || !usedSalts[v.salt]) { p.salt = v.salt; }
|
||||||
ct = sjcl.encrypt(password || key, plaintext, p, rp).replace(/,/g,",\n");
|
ct = sjcl.encrypt(password || key, plaintext, p, rp).replace(/,/g,",\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user