Skip to content
Sharp

Authentication · interview question

Why should passwords never be stored in plaintext in a database?

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

Correct answer

B. Because plaintext passwords can be easily stolen and misused if the database is breached.

Why

Passwords should never be stored in plaintext because they can be easily stolen and misused if the database is breached. Storing passwords as hashes with salts enhances security significantly.

Test yourself on Authentication

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

Start free test
All Authentication questions →