mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	password now encrypts random "data key" which is then used for encryption of the actual data
This commit is contained in:
		| @@ -83,17 +83,17 @@ function setExpandedToServer(note_id, is_expanded) { | ||||
|     }); | ||||
| } | ||||
|  | ||||
| let globalVerificationSalt; | ||||
| let globalEncryptionSalt; | ||||
| let globalEncryptionSessionTimeout; | ||||
| let globalEncryptedDataKey; | ||||
|  | ||||
| $(function(){ | ||||
|     $.get(baseUrl + 'tree').then(resp => { | ||||
|         const notes = resp.notes; | ||||
|         let startNoteId = resp.start_note_id; | ||||
|         globalVerificationSalt = resp.verification_salt; | ||||
|         globalEncryptionSalt = resp.encryption_salt; | ||||
|         globalEncryptionSalt = resp.password_derived_key_salt; | ||||
|         globalEncryptionSessionTimeout = resp.encryption_session_timeout; | ||||
|         globalEncryptedDataKey = resp.encrypted_data_key; | ||||
|  | ||||
|         if (document.location.hash) { | ||||
|             startNoteId = document.location.hash.substr(1); // strip initial # | ||||
|   | ||||
		Reference in New Issue
	
	Block a user