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