Overview - Password hashing with bcrypt
What is it?
Password hashing with bcrypt is a way to securely store user passwords by turning them into a scrambled code that is hard to reverse. Instead of saving the actual password, bcrypt creates a unique hash that represents it. When a user logs in, bcrypt compares the entered password by hashing it again and checking if it matches the stored hash. This keeps passwords safe even if someone steals the stored data.
Why it matters
Without password hashing like bcrypt, if a hacker steals a database, they get all user passwords in plain text, risking user accounts everywhere. Bcrypt protects users by making stolen password data useless because hashes cannot be easily turned back into original passwords. This helps prevent identity theft, account takeovers, and builds trust in applications.
Where it fits
Before learning bcrypt, you should understand basic JavaScript, how Express handles requests, and what passwords are. After bcrypt, you can learn about user authentication flows, session management, and advanced security practices like multi-factor authentication.