Skip to content
Vol. 1 · Ed. 2026
CyberGlossary
Entry № 1075

Salt

Reviewed byCybersecurity entrepreneur & security researcher

What is Salt?

SaltA unique random value combined with a password before hashing to defeat rainbow tables and ensure each user's hash is distinct.


A cryptographic salt is a non-secret random value mixed with a password before it is fed into a hash function or KDF such as Argon2, scrypt, bcrypt or PBKDF2. Salts ensure that two users with identical passwords receive different stored hashes, defeating precomputed rainbow tables and making a cracker attack each hash individually rather than batching one guess against the whole database.

The LinkedIn breach of 2012 is the canonical cautionary tale: roughly 6.5 million password hashes leaked as unsalted SHA-1, and because identical passwords produced identical hashes, attackers cracked millions within days and the same corpus resurfaced in a ~117-million-record dump in 2016. Salting alone would not have stopped cracking, but it removes the batch advantage; the per-guess cost is the separate job of a slow KDF's work factor.

Guidance: a salt should be unique per credential and drawn from a CSPRNG. NIST SP 800-132 recommends at least 128 bits for password storage, while NIST SP 800-63B sets a floor of 32 bits; OWASP advises a modern 16-byte random salt. It is stored alongside the hash, not kept secret — that is the role of a pepper. Modern PHC-string formats ($argon2id$…, $2b$…, $scrypt$…) embed the salt directly, and salts are also used in HKDF and randomised public-key schemes for the same diversification purpose.

flowchart LR
  PW[User password] --> CONCAT((combine))
  SALT[Per-user random salt<br/>CSPRNG, 16+ bytes] --> CONCAT
  CONCAT --> KDF[Slow KDF<br/>Argon2id / bcrypt<br/>+ work factor]
  KDF --> OUT[Stored record:<br/>salt + hash]
  SALT -. stored in clear .-> OUT

● Examples

  1. 01

    An Argon2id hash like $argon2id$v=19$m=65536,t=3,p=1$<base64-salt>$<base64-hash>.

  2. 02

    A unique 16-byte random salt generated per user during account creation.

● Frequently asked questions

What is Salt?

A unique random value combined with a password before hashing to defeat rainbow tables and ensure each user's hash is distinct. It belongs to the Cryptography category of cybersecurity.

What does Salt mean?

A unique random value combined with a password before hashing to defeat rainbow tables and ensure each user's hash is distinct.

How do you defend against Salt?

Defences for Salt typically combine technical controls and operational practices, as detailed in the full definition above.

What are other names for Salt?

Common alternative names include: Cryptographic salt, Password salt.

● Related terms

● See also