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

Quiz: Password Storage Lab · Question 1 of 10

Why must the salt and iteration count be stored next to the hash?

Why must the salt and iteration count be stored next to the hash?

  1. A.To make the hash longer
  2. B.Because attackers need them anyway
  3. C.Without them the server cannot recompute the hash to verify a password later
  4. D.Because the salt is secret
Answer & explanation

Correct answer: Without them the server cannot recompute the hash to verify a password later

The same password gives a different hash for every salt and cost, so verification needs both.

Can you get the rest right without peeking?

Take the timed Quiz: Password Storage Lab quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →