Skip to content
Sharp

Authentication · interview question

How does appending a unique random 'Salt' to passwords enhance security?

Multiple choiceMediumchapter-17-curatedpremiumauthenticationsalting-and-bcrypt
Choose one answer
Answer and explanation

Correct answer

B. It ensures that even the same passwords produce different hashes.

Why

Salting a password involves appending a unique, random string to each password before hashing. This ensures that even identical passwords will generate different hashes, rendering pre-computed rainbow tables ineffective.

Test yourself on Authentication

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

Start free test
All Authentication questions →