From 5ed92f475377612b592ce6150733d81da0e88b61 Mon Sep 17 00:00:00 2001 From: ZeroPath Date: Tue, 5 Aug 2025 04:44:35 +0000 Subject: [PATCH] fix: increase PBKDF2 iterations for secure password hashing --- owasp-top10-2021-apps/a1/tictactoe/src/crypto.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owasp-top10-2021-apps/a1/tictactoe/src/crypto.js b/owasp-top10-2021-apps/a1/tictactoe/src/crypto.js index bf0858d50..9fdefd9f8 100644 --- a/owasp-top10-2021-apps/a1/tictactoe/src/crypto.js +++ b/owasp-top10-2021-apps/a1/tictactoe/src/crypto.js @@ -2,7 +2,7 @@ var crypto = require('crypto') function hash(password, salt) { - const derivedKey = crypto.pbkdf2Sync(password, salt, 5000, 32, 'sha512') + const derivedKey = crypto.pbkdf2Sync(password, salt, 100000, 32, 'sha512') return derivedKey.toString('hex') } @@ -13,4 +13,4 @@ function generateSalt(){ module.exports = { generateSalt, hash -} \ No newline at end of file +}