Pepper (cryptography)
In cryptography, a pepper is a secret added to an input such as a password during hashing with a cryptographic hash function.[src] This value differs from a salt in that it is not stored alongside a password hash, but rather the pepper is kept separate using another mechanism, such as a Hardware Security Module (HSM).[src] The National Institute of Standards and Technology refers to this value as a secret key rather than a pepper.[src] A pepper is similar in concept to a salt or an encryption key.[src] It is like a salt in that it is a randomized value that is added to a password hash, and it is similar to an encryption key in that it should be kept secret.[src] While a salt is not secret (merely unique) and can be stored alongside the hashed output, a pepper is secret and must not be stored with the output.[src] The hash and salt are usually stored in a database, but, if stored, a pepper must be stored separately to prevent it from being obtained by the attacker in case of a database breach.[src]
In cryptography, a pepper is a secret added to an input such as a password during hashing with a cryptographic hash function.[src] This value differs from a salt in that it is not stored alongside a password hash, but rather the pepper is kept separate using another mechanism, such as a Hardware Security Module (HSM).[src] The National Institute of Standards and Technology refers to this value as a secret key rather than a pepper.[src] A pepper is similar in concept to a salt or an encryption key.[src] It is like a salt in that it is a randomized value that is added to a password hash, and it is similar to an encryption key in that it should be kept secret.[src] While a salt is not secret (merely unique) and can be stored alongside the hashed output, a pepper is secret and must not be stored with the output.[src] The hash and salt are usually stored in a database, but, if stored, a pepper must be stored separately to prevent it from being obtained by the attacker in case of a database breach.[src] ==See also== HMAC passwd ==References==[src]
15 sentences · 15 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Pepper (cryptography)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/pepper-cryptography. Accessed 26 November 2026.
Chicago
"Pepper (cryptography)." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/pepper-cryptography.
APA
encyclopegia.org. (2026). Pepper (cryptography). Retrieved November 26, 2026, from https://encyclopegia.org/wiki/pepper-cryptography
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON