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 +}