This commit is contained in:
zadam 2022-07-28 22:44:55 +02:00
parent 698ffd886d
commit 91bc9eec93

View File

@ -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);
}