General Security Concepts

An attacker steals a password database in which two users with the same password have identical hash values. Which change would stop identical passwords from producing identical hashes?

Show the answer

Correct answerB. Add a unique random salt to each password before hashing

AWhy not this: Signing the hash proves integrity but leaves identical passwords with identical hashes.

BWhy this is right: A per-user random salt changes the hash input, so equal passwords yield different hashes.

CWhy not this: Obfuscation hides the data but does not change how the hashes are derived.

DWhy not this: A faster algorithm helps attackers guess more quickly and does not add uniqueness.

A unique random salt per password makes identical passwords hash differently and defeats precomputed rainbow tables. A signature on the hash only detects tampering and does not change the hash itself.