Use it when configuring, checking or troubleshooting Salting in Cryptography.
Salting
Salting adds a unique non-secret value to each password or similar input before a password KDF so identical inputs do not share verifier values and precomputed tables lose efficiency.
1. A salt is random data added before hashing passwords.
2. Defeats rainbow tables and identical-hash detection.
3. Unique per password; stored with the hash.
4. Not secret.
5. Use with slow KDFs.
password + unique salt → KDF → stored hash
Context & applicabilityCommon mistakes · platform/version boundaries
A unique salt prevents identical verifier equality and broad precomputation; it does not make weak passwords strong or compensate for a fast/obsolete KDF.
Suspicious evidence: constant/shared salt, username as only salt, short collision-prone salt, unsalted legacy records, fast SHA hash with salt, hard-coded pepper mistaken for salt or lost metadata.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
password/input → unique salt generation → password KDF with parameters → stored salt/verifier/metadata → verification and rehash migration
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Salt ≠ secret or pepper.
- Salt ≠ encryption.
- Salted fast hash ≠ secure password hashing.
- Unique salt ≠ strong password or sufficient KDF cost.
- Unique random salt per password — storage
grep <user> /etc/shadow | cut -d'$' -f3— salt part of hash- Salt length (≥ 16 bytes) — quality
ReferenceWhat it is1 section · depth on demand
How salting works
Each password gets its own random salt (16+ bytes) stored next to the hash. Identical passwords then produce different hashes, and precomputed rainbow tables are useless. The salt is not secret; a pepper is an optional extra secret kept outside the database (for example in an HSM or config). Salting alone does not slow brute force — that is the job of a slow KDF (Argon2id, bcrypt).
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
A unique salt prevents identical verifier equality and broad precomputation; it does not make weak passwords strong or compensate for a fast/obsolete KDF.
In depth
A salt is a unique random value added to each password before hashing. It ensures identical passwords produce different hashes, defeats precomputed rainbow tables, and forces attackers to crack each hash individually.
Rules:
| Rule | Detail |
|---|---|
| Unique per password | Never a single global salt |
| Random | From a cryptographically secure generator |
| At least 16 bytes | Large enough to be unique |
| Stored with the hash | Not secret |
Modern password hashing functions (Argon2id, bcrypt, scrypt) generate and store salts automatically. A separate secret "pepper" stored outside the database (e.g. in an HSM or configuration) can add protection if the database alone is stolen.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Cryptography → Salting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/fips/197/final · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Cryptography → Salting proof map
Fast scope, effective cryptographic state, verification and closure boundaries for Cryptography → Salting.
| Boundary | Establish | Does not establish |
|---|---|---|
| Scope and intent | Asset/data/peer, security property, identity/name, protocol and time | Does not prove algorithm, key, trust or endpoint correctness |
| Effective cryptographic state | Exact version, algorithm/mode/parameters, key/certificate/path and negotiated result | Configuration or object presence does not prove correct use |
| Verification outcome | Positive, negative, tamper, expiry/revoke and failure tests correlated with evidence | One success does not prove every peer, client, path or lifecycle stage |
| Closure | Original operation succeeds; old/unsafe state is retired and regression checks pass | Administrative workflow completion alone is not closure |