🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Passwords and Authentication: all 10 questions

Quiz: Passwords and Authentication · Question 6 of 10

Why is encrypting passwords with AES worse than hashing them with a slow, salted hash?

Why is encrypting passwords with AES worse than hashing them with a slow, salted hash?

  1. A.AES is too slow for login
  2. B.Whoever gets the key can decrypt every password, and you never need to decrypt them
  3. C.AES output is too long to store
  4. D.AES cannot handle special characters
Answer & explanation

Correct answer: Whoever gets the key can decrypt every password, and you never need to decrypt them

To check a login you only compare hashes, so a reversible scheme adds risk for no benefit.

Can you get the rest right without peeking?

Take the timed Quiz: Passwords and Authentication quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →