Skip to content
Sharp

OWASP Vulnerabilities · interview question

Why is it useful to salting passwords before hashing them?

Multiple choiceMediumchapter-17-curatedpremiumowasp-vulnerabilitiessql-injection
Choose one answer
Answer and explanation

Correct answer

B. To ensure uniqueness of the hash output for identical passwords

Why

Salting adds a unique value to each password before hashing, ensuring that even identical passwords result in different hash outputs, thus enhancing security against attacks 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 →