Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Salting

Direct answer

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.

When to use this

Use it when configuring, checking or troubleshooting Salting in Cryptography.

First 30 seconds

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.

Operational verification

password + unique salt → KDF → stored hash

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

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.

Platform / version applicability
Cryptography, PKI and secrets
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCryptography, PKI and secrets
Scope / prerequisiteUse it when configuring, checking or troubleshooting Salting in Cryptography.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Salt ≠ secret or pepper.
  • Salt ≠ encryption.
  • Salted fast hash ≠ secure password hashing.
  • Unique salt ≠ strong password or sufficient KDF cost.
Key checks
  • 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:

RuleDetail
Unique per passwordNever a single global salt
RandomFrom a cryptographically secure generator
At least 16 bytesLarge enough to be unique
Stored with the hashNot 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCryptography, PKI and secrets current

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%
Terminology layer

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.

Aliases that resolve here
password saltsalted hashingunique hash salt
Embedded reference data

Quick lookup tables

Cryptography → Salting proof map

Fast scope, effective cryptographic state, verification and closure boundaries for Cryptography → Salting.

BoundaryEstablishDoes not establish
Scope and intentAsset/data/peer, security property, identity/name, protocol and timeDoes not prove algorithm, key, trust or endpoint correctness
Effective cryptographic stateExact version, algorithm/mode/parameters, key/certificate/path and negotiated resultConfiguration or object presence does not prove correct use
Verification outcomePositive, negative, tamper, expiry/revoke and failure tests correlated with evidenceOne success does not prove every peer, client, path or lifecycle stage
ClosureOriginal operation succeeds; old/unsafe state is retired and regression checks passAdministrative workflow completion alone is not closure
Confirmation

Confirm action

Continue?