Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: do not send salt param during random key gen

thecodrre54a5e8ef0cd
diff --git a/packages/core/database/storage.js b/packages/core/database/storage.js
index 6bc776aca..e8c9478b5 100644
--- a/packages/core/database/storage.js
+++ b/packages/core/database/storage.js
@@ -56,6 +56,6 @@ export default class Storage {
async generateRandomKey() {
const passwordBytes = randomBytes(124);
const password = passwordBytes.toString("base64");
- return await this.storage.generateCryptoKey(password, false);
+ return await this.storage.generateCryptoKey(password);
}
}