Password hashing and salts
A well-run website never stores your password. It stores a hash of it, mixed with a random value called a salt. When you log in, it hashes what you typed the same way and compares the results.
A bouncer who keeps a fingerprint of each guest, not their house key. A stolen list of fingerprints does not open anyone's front door.
Why it matters
When websites are hacked, properly hashed passwords are slow and expensive to recover. Badly stored ones are cracked within hours, and a cracked password can then be tried on your other accounts.
In plain words
A well-run website never stores your password. It stores a hash of it, mixed with a random value called a salt. When you log in, it hashes what you typed the same way and compares the results.
Think of it like this
A bouncer who keeps a fingerprint of each guest, not their house key. A stolen list of fingerprints does not open anyone's front door.
Why it matters
When websites are hacked, properly hashed passwords are slow and expensive to recover. Badly stored ones are cracked within hours, and a cracked password can then be tried on your other accounts.
Where you meet it
Every website login. Data breach notices often say whether passwords were 'hashed and salted'.
More diagrams: How a well-run website stores your password
Go deeper history and technical detail
Salts stop attackers from cracking everyone's password at once with pre-computed tables. Password hashes should also be deliberately slow: bcrypt, scrypt and Argon2 (winner of the 2015 Password Hashing Competition) are designed for this. In 2012 LinkedIn lost millions of passwords hashed with unsalted SHA-1, and most were cracked.
Read or watch next
- Hashing Algorithms and SecurityComputerphile (2013), video
Related terms
Cite this page Encryption Observer, “Password hashing and salts”, encryption.observer/terms/password-hashing/, checked December 2026.