mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	fix encrypting new notes
This commit is contained in:
		| @@ -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; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user