up the iterations

This commit is contained in:
cupcakearmy 2021-05-08 21:46:43 +02:00
parent 9c675ba48c
commit d1e9ffd89b
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9

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',