Glossary
Salt (password salt)
Definition
Salt: A random, non-secret value added to a password or other secret before it is hashed or turned into a key, unique for each password and stored with the result, so identical passwords produce different results and precomputed cracking tables are useless.
Also known aspassword saltcryptographic saltsaltingsalted hash
In short
A salt is a random, non-secret value added to a password before it is hashed or turned into a key. Each password gets its own salt, stored next to the result, so two people with the same password end up with different hashes. That stops precomputed rainbow tables and forces attackers to crack every account separately. Salt doesn't make a weak password strong.
Key takeaways
- A salt is unique per password, random and stored alongside the hash. It isn't secret.
- Without salt, everyone who chose the same password shares one hash, and cracking one cracks all.
- Salt defeats precomputed tables such as rainbow tables.
- A pepper is different. It's one secret value, kept apart from the password database.
- Salt removes shortcuts; a slow hash and a long password still do the real work.
Last reviewed 3 December 2026 by Foxcolab Team
A password salt is a random value added to a password before it is hashed or turned into a key, so that the same password never gives the same result twice. NIST's glossary calls a salt "a non-secret value used in a cryptographic process," there to stop an attacker reusing work done for one account on another. The salt is stored next to the result. Its job is to be unique, not secret.
Why salting matters#
Picture a database of 100,000 accounts in which 2,000 people chose Summer2026!. Without salt, all 2,000 rows hold the identical hash. Crack it once and you've cracked them all, and a precomputed rainbow table can look it up without any guessing. With a unique salt per account, those 2,000 rows all look different, and each must be attacked on its own. As OWASP puts it, salting means "it is impossible to determine whether two users have the same password without cracking the hashes."
How it works#
user salt (stored) hash (stored)
anita 9f2c71… 41ab0e… password: Summer2026!
rahul e07d4a… c3f95b… password: Summer2026!At sign-in, the service reads the stored salt, combines it with what you typed, hashes the result and compares. NIST's SP 800-63B-4 sets a minimum salt length and requires that "both the salt value and the resulting hash SHALL be stored for each password." Modern password hashing functions create and store the salt for you.
Salt vs. pepper#
| Salt | Pepper | |
|---|---|---|
| One per password | Yes | No, shared by all |
| Secret | No | Yes |
| Stored with the hash | Yes | No, kept apart from the database |
What salt doesn't do#
A salt doesn't make a weak password strong. An attacker who steals the database gets the salts too, and still tries Summer2026! first. Salt removes the shortcuts of shared and precomputed work. A deliberately slow hash or key derivation function, and a long password, do the rest.
In Foxcolab#
Foxcolab stores your sign-in password only as a salted, deliberately slow hash. Separately, when your device locks your account key with your password, it first draws a fresh random salt, and it draws a new one every time you set a new password. Two people with the same password end up with different locks, and the key made from your password never leaves your device.
That lock protects your end-to-end encrypted files, documents and notes. Create a free account to try it.
Keep exploring
Related terms
- HashingHashing turns any data into a short, fixed-length fingerprint that can't be turned back. It's how services check passwords without storing them and how you confirm a file arrived intact.
- Key derivation functionA key derivation function turns a password or other secret into an encryption key. Password-based ones are deliberately slow, so every guess costs an attacker time and hardware.
- Rainbow tableA rainbow table is a precomputed table that turns stolen, unsalted password hashes back into passwords by lookup. A unique salt per password makes it useless.
- Dictionary attackA dictionary attack guesses passwords from a list of likely candidates, such as common and leaked passwords plus predictable variations, instead of trying every combination.
- Brute-force attackA brute-force attack guesses passwords, codes or keys one after another until one works. Rate limits stop it online; slow hashing and long passwords stop it offline.

Foxcolab
Private work tools, without the ads.
Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.