use generated salts instead of fixed ones

This commit is contained in:
azivner
2017-09-12 21:43:24 -04:00
parent b4f9fc3a5e
commit 8bc1bdd5f7
5 changed files with 20 additions and 15 deletions

View File

@@ -83,10 +83,15 @@ function setExpandedToServer(note_id, is_expanded) {
});
}
let globalVerificationSalt;
let globalEncryptionSalt;
$(function(){
$.get(baseUrl + 'tree').then(resp => {
const notes = resp.notes;
let startNoteId = resp.start_note_id;
globalVerificationSalt = resp.verification_salt;
globalEncryptionSalt = resp.encryption_salt;
if (document.location.hash) {
startNoteId = document.location.hash.substr(1); // strip initial #