Skip to content

Commit 46654da

Browse files
authored
fix(password-hash): Update PBKDF2 iteration count to more closely align with OWASP recommendations (#648)
1 parent 5af8126 commit 46654da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/consts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = {
4343
DEFAULT_HASH_ALGO: 'pbkdf2', //either 'pbkdf2' or 'bcrypt'
4444

4545
BCRYPT_ROUNDS: 11, // bcrypt.js benchmark async in a VPS: 261.192ms, do not want to take it too long
46-
PDKDF2_ITERATIONS: 25000,
46+
PDKDF2_ITERATIONS: 100000,
4747
PDKDF2_SALT_SIZE: 16,
4848
PDKDF2_DIGEST: 'sha256', // 'sha512', 'sha256' or 'sha1'
4949

0 commit comments

Comments
 (0)