This commit is contained in:
zadam
2019-11-01 23:05:33 +01:00
parent 2af86927b0
commit 475fddeec1
8 changed files with 84 additions and 49 deletions

View File

@@ -37,7 +37,7 @@ function isProtectedSessionAvailable() {
function decryptNotes(notes) {
for (const note of notes) {
if (note.isProtected) {
note.title = decrypt(note.title);
note.title = decrypt(note.title).toString();
}
}
}
@@ -47,7 +47,7 @@ function encrypt(plainText) {
}
function decrypt(cipherText) {
return dataEncryptionService.encrypt(getDataKey(), cipherText);
return dataEncryptionService.decrypt(getDataKey(), cipherText);
}
module.exports = {