mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
cleanup
This commit is contained in:
parent
698ffd886d
commit
91bc9eec93
@ -18,7 +18,7 @@ function verifyPassword(password) {
|
|||||||
function setDataKey(password, plainTextDataKey) {
|
function setDataKey(password, plainTextDataKey) {
|
||||||
const passwordDerivedKey = myScryptService.getPasswordDerivedKey(password);
|
const passwordDerivedKey = myScryptService.getPasswordDerivedKey(password);
|
||||||
|
|
||||||
const newEncryptedDataKey = dataEncryptionService.encrypt(passwordDerivedKey, plainTextDataKey, 16);
|
const newEncryptedDataKey = dataEncryptionService.encrypt(passwordDerivedKey, plainTextDataKey);
|
||||||
|
|
||||||
optionService.setOption('encryptedDataKey', newEncryptedDataKey);
|
optionService.setOption('encryptedDataKey', newEncryptedDataKey);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user