General Security Concepts

What is the purpose of adding a unique random value to each password before it is hashed?

Show the answer

Correct answerA. To make identical passwords produce different hashes

AWhy this is right: A unique salt per password changes the input, so equal passwords yield different hashes and defeat rainbow tables.

BWhy not this: Salting happens at storage time and is not transport encryption.

CWhy not this: Output length is set by the hash algorithm, not by the salt.

DWhy not this: Hashes stay one-way; salting does not allow recovery of the password.

A salt is a unique random value combined with each password before hashing, so two users with the same password get different hashes and precomputed rainbow tables become useless. It does not make hashes reversible or encrypt anything.