mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	changing from AES-256-CTR to AES-128-CBC for note encryption
This commit is contained in:
		| @@ -21,8 +21,8 @@ router.get('/:noteId', auth.checkApiAuth, async (req, res, next) => { | ||||
|     if (detail.is_protected) { | ||||
|         const dataKey = protected_session.getDataKey(req); | ||||
|  | ||||
|         detail.note_title = data_encryption.decrypt(dataKey, detail.note_title); | ||||
|         detail.note_text = data_encryption.decrypt(dataKey, detail.note_text); | ||||
|         detail.note_title = data_encryption.decryptCbc(dataKey, data_encryption.noteTitleIv(noteId), detail.note_title); | ||||
|         detail.note_text = data_encryption.decryptCbc(dataKey, data_encryption.noteTextIv(noteId), detail.note_text); | ||||
|     } | ||||
|  | ||||
|     res.send({ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user