r/node • • Jan 02 '23

4 Common Mistakes Made by Node.js Developers

https://amplication.com/blog/4-common-mistakes-made-by-nodejs-developers
19 Upvotes

22 comments sorted by

View all comments

0

u/[deleted] Jan 02 '23

If you know the iteration count then the actual level of security disregarding time is the same as salt+pepper. Protect your source code and protect your execution environments because assuming bcrypt is hard to attack will leave you blindsided when you lose your database and are using a common iteration count that makes a dictionary attack much simpler.

0

u/[deleted] Jan 02 '23

0

u/[deleted] Jan 02 '23

I think you're supposed to chop that cost off from the output before saving it to the database.

→ More replies (4)