fix encrypting new notes

This commit is contained in:
azivner
2018-08-27 23:04:52 +02:00
parent 4721ddc6b3
commit 174d4e67af
4 changed files with 19 additions and 4 deletions

View File

@@ -85,10 +85,18 @@ function decryptString(dataKey, iv, cipherText) {
}
function noteTitleIv(iv) {
if (!iv) {
throw new Error("Empty iv!");
}
return "0" + iv;
}
function noteContentIv(iv) {
if (!iv) {
throw new Error("Empty iv!");
}
return "1" + iv;
}