Password hashing is a way to keep passwords safe when they are stored in a system. Instead of saving the actual password, the system changes it into a special code (called a hash) using a mathematical function.
One-way process – You can turn a password into a hash, but you can’t turn the hash back into the password.
Hides real passwords – Even if hackers steal the stored hashes, they can’t easily see the original passwords.
Protects against attacks – Hashing stops attackers from using simple tricks like guessing or using pre-made lists of common passwords (called rainbow tables).
A "salt" is a random value added to the password before hashing.
This makes every hash unique, even if two people have the same password.
bcrypt
PBKDF2
Argon2
These are used because they make it slow for hackers to guess passwords.
Instead of saving real passwords, systems store hashed versions. This makes it much harder for attackers to steal or use them! 🚀