Skip to content
Sharp

OWASP Vulnerabilities · interview question

Why should password hashing include a 'salt' when storing user credentials?

Multiple choiceMediumchapter-17-curatedpremiumowasp-vulnerabilitiescross-site-scripting-xss
Choose one answer
Answer and explanation

Correct answer

C. To ensure each hash is unique even for identical passwords

Why

Salting adds a unique value to each password before hashing, ensuring that even identical passwords result in different hashes. This makes it difficult for attackers to use precomputed tables like rainbow tables.

Test yourself on OWASP Vulnerabilities

A free test with instant, explained results. No account needed.

Start free test
All OWASP Vulnerabilities questions →