Introduction
We use password hashing to keep passwords safe. Instead of saving the password directly, we save a secret code that is hard to guess.
When creating a new user account and saving their password.
When checking if a user's login password is correct.
When updating a user's password securely.
When you want to protect user data from hackers.
When storing passwords in a database.