mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
changing from AES-256-CTR to AES-128-CBC for note encryption
This commit is contained in:
@@ -28,7 +28,7 @@ router.get('/', auth.checkApiAuth, async (req, res, next) => {
|
||||
|
||||
for (const note of notes) {
|
||||
if (note.is_protected) {
|
||||
note.note_title = data_encryption.decrypt(dataKey, note.note_title);
|
||||
note.note_title = data_encryption.decryptCbc(dataKey, data_encryption.noteTitleIv(note.note_id), note.note_title);
|
||||
}
|
||||
|
||||
note.children = [];
|
||||
|
||||
Reference in New Issue
Block a user