From b8f0c7e310f8663cb25d6cf9f6c922f84903e810 Mon Sep 17 00:00:00 2001 From: BenRey <44082144+Ben-Rey@users.noreply.github.com> Date: Tue, 24 Sep 2024 11:51:17 +0200 Subject: [PATCH] Fix hash create key (#680) --- src/crypto/passwordSeal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/passwordSeal.ts b/src/crypto/passwordSeal.ts index b5415151..5055aad9 100644 --- a/src/crypto/passwordSeal.ts +++ b/src/crypto/passwordSeal.ts @@ -17,7 +17,7 @@ function createKey(password: string, salt: Buffer): Promise { const opts: PBKDF2Options = { iterations: OWASP_ITERATIONS, keyLength: KEY_SIZE_BYTES, - hash: 'SHA-256', + hash: 'sha256', } return pbkdf2(password, salt, opts) }