Password hashing with bcrypt in Express
📖 Scenario: You are building a simple Express server that needs to securely store user passwords. Instead of saving plain text passwords, you will use bcrypt to hash them before saving.
🎯 Goal: Create an Express app that hashes a user password using bcrypt before saving it.
📋 What You'll Learn
Create a variable with a plain text password string
Add a variable for bcrypt salt rounds
Use bcrypt to hash the password with the salt rounds
Export the hashed password or use it in the app
💡 Why This Matters
🌍 Real World
Password hashing is essential for securely storing user passwords in web applications to protect user data.
💼 Career
Understanding bcrypt and password hashing is a key skill for backend developers working on authentication and security.
Progress0 / 4 steps