IT lexicon › Security › Pepper

Pepper

Security På svenska → Updated: 2026-10-12

A secret value mixed into password hashes alongside the salt, but stored separately from the database.

A salt is public and unique per user. A pepper is shared across the system and kept somewhere else, such as in configuration or an HSM. Someone who steals the database but not the pepper cannot check guesses against the hashes, because every guess needs a secret value the attacker does not have.

A pepper does not replace a salt, and a weak hash function does not become strong because of one. If the pepper sits in the same database as the hashes, it is just an extra step. Changing it means re-hashing at the next login, so plan for rotation before you need it.

← Back to the lexicon