juniorCryptography
Explain the concept of Salt in password hashing.
Updated Apr 28, 2026
Short answer
A salt is random data used as an additional input to a one-way function that hashes data, usually a password.
Deep explanation
At a junior level, understanding the CIA triad (Confidentiality, Integrity, Availability) is crucial. Cryptography primarily addresses Confidentiality through encryption and Integrity through hashing and digital signatures.
Real-world example
Using HTTPS while browsing the web utilizes TLS to encrypt traffic between your browser and the server.
Common mistakes
- Confusing Base64 encoding with encryption.
Follow-up questions
- Can you reverse a hash?
- What makes a password 'strong'?