web: reduce pbkdf2 db key generator iterations to 100k

this is for performance reasons mainly. 100k should still be super secure.
This commit is contained in:
Abdullah Atta
2024-11-13 17:28:11 +05:00
parent cd51f2f2c9
commit 329248ebbd

View File

@@ -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