Security Architecture
A web application must verify user passwords at login without being able to recover the original passwords from its database. Which method should the developer use to store them?
Show the answer
Correct answerB. Salted hashing
AWhy not this: Masking only hides characters on display; the underlying stored passwords would remain readable.
BWhy this is right: Hashing is one-way; the app compares digests at login, and a salt defeats precomputed lookups.
CWhy not this: Symmetric encryption is reversible with the key, so stored passwords could be recovered.
DWhy not this: Tokenization relies on a vault that maps tokens back to the original values, so it is reversible.
A salted hash is one-way, so the application compares hashes at login and cannot recover the passwords. Symmetric encryption is reversible by anyone holding the key, which breaks the requirement.