Skip to content

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

web: reduce pbkdf2 db key generator iterations to 100k

Abdullah Atta329248ebbd94
diff --git a/apps/web/src/interfaces/key-store.ts b/apps/web/src/interfaces/key-store.ts
index 122272958..98114a8b9 100644
--- a/apps/web/src/interfaces/key-store.ts
+++ b/apps/web/src/interfaces/key-store.ts
@@ -555,7 +555,7 @@ async function getWrappingKey(credential?: Credential): Promise<CryptoKey> {
{
name: "PBKDF2",
salt: credential.salt,
- iterations: 650000,
+ iterations: 100000,
hash: "SHA-512"
},
await window.crypto.subtle.importKey(
@@ -639,7 +639,7 @@ export async function deriveKey(password: string) {
name: "PBKDF2",
hash: "SHA-512",
salt,
- iterations: 650000
+ iterations: 100000
},
importedKey,
32 * 8