# Pepper vs. Salt

> What is a password pepper, how is it different from a salt, and how would you implement one safely?

Canonical: https://www.internhack.in/learn/interview/web-security/security-peppering-passwords
Last updated: 2026-11-28

Difficulty: Advanced

## Question

What is a password pepper, how is it different from a salt, and how would you implement one safely?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Password Pepper, Salt, HMAC, Key Management, Defence in Depth

Previous: [The Purpose of Salt](https://www.internhack.in/learn/interview/web-security/security-salting-passwords) · Next: [Insecure Deserialization](https://www.internhack.in/learn/interview/web-security/security-insecure-deserialization) · [All of Web Security (OWASP, JWT, XSS, CSRF)](https://www.internhack.in/learn/interview/web-security)

## More Web Security (OWASP, JWT, XSS, CSRF) questions

- [JSON Poisoning](https://www.internhack.in/learn/interview/web-security/security-json-poisoning)
- [Directory Traversal](https://www.internhack.in/learn/interview/web-security/security-directory-traversal)
- [Principle of Least Privilege](https://www.internhack.in/learn/interview/web-security/security-least-privilege)
- [Zero Trust](https://www.internhack.in/learn/interview/web-security/security-zero-trust-architecture)
- [CSP: Content Security Policy](https://www.internhack.in/learn/interview/web-security/security-content-security-policy)
- [Subresource Integrity (SRI)](https://www.internhack.in/learn/interview/web-security/security-subresource-integrity)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Web Security (OWASP, JWT, XSS, CSRF)](https://www.internhack.in/learn/interview/web-security)
