Skip to content

Build your personal knowledge base with Trilium Notes

cleanup

zadam91bc9eec93fd
diff --git a/src/services/password_encryption.js b/src/services/password_encryption.js
index d41736b215..513e3af2c7 100644
--- a/src/services/password_encryption.js
+++ b/src/services/password_encryption.js
@@ -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);
}