up the iterations

This commit is contained in:
2021-05-08 21:46:43 +02:00
parent 9c675ba48c
commit d1e9ffd89b

View File

@@ -36,7 +36,7 @@ export function getKeyFromString(password: string) {
} }
export async function getDerivedForKey(key: CryptoKey, salt: ArrayBuffer) { export async function getDerivedForKey(key: CryptoKey, salt: ArrayBuffer) {
const iterations = 1_000 const iterations = 100_000
return window.crypto.subtle.deriveKey( return window.crypto.subtle.deriveKey(
{ {
name: 'PBKDF2', name: 'PBKDF2',