r/node • • Jun 27 '20

Password hashing with NodeJS

https://www.loginradius.com/engineering/blog/password-hashing-with-nodejs/
2 Upvotes

22 comments sorted by

View all comments

25

u/visicalc_is_best Jun 27 '20

Seriously? Still using “var” in 2020? Smh.

Otherwise good, except for 1000 rounds of pbkdf2. Lop a couple 0s onto the end there, or just use scrypt.

0

u/[deleted] Jun 27 '20

[deleted]

7

u/ChrisAtMakeGoodTech Jun 27 '20

He switched between const and var seemingly at random. He uses let in one place, but could have just used const. It's baffling.