Courses / Node.js
35. Password hashing with bcrypt
Hash and verify user passwords securely using bcrypt or an equivalent library.
1 min read Chapter 35 of 48
JavaScript
Password hashing with bcrypt
Transform passwords into secure, non-reversible hashes and verify user logins without storing plaintext.
"I don't want anyone (including me) to be able to read stored passwords if the database leaks."
bcrypt is a slow, salted hashing algorithm used to convert passwords into irreversible digests and to check a candidate password by comparing hashes.
"I don't want anyone (including me) to be able to read stored passwords if the database leaks."
bcrypt is a slow, salted hashing algorithm used to convert passwords into irreversible digests and to check a candidate password by comparing hashes.