Skip to content

Build your personal knowledge base with Trilium Notes

cleanup

zadam698ffd886d15
diff --git a/src/services/password_encryption.js b/src/services/password_encryption.js
index 3c38d4e916..d41736b215 100644
--- a/src/services/password_encryption.js
+++ b/src/services/password_encryption.js
@@ -11,7 +11,7 @@ function verifyPassword(password) {
if (!dbPasswordHash) {
return false;
}
-
+
return givenPasswordHash === dbPasswordHash;
}
@@ -28,7 +28,7 @@ function getDataKey(password) {
const encryptedDataKey = optionService.getOption('encryptedDataKey');
- const decryptedDataKey = dataEncryptionService.decrypt(passwordDerivedKey, encryptedDataKey, 16);
+ const decryptedDataKey = dataEncryptionService.decrypt(passwordDerivedKey, encryptedDataKey);
return decryptedDataKey;
}