The Purpose of Salt

Difficulty: Intermediate

Question

Why do we add 'salt' to passwords before hashing?

Answer

To ensure that two users with the same password have different hashes, and to protect against pre-computed 'Rainbow Table' attacks.

Concepts covered

Hashing, Rainbow Tables