🎙 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 3 of 10

When is the right moment to upgrade a user's legacy sha256 hash to PBKDF2?

When is the right moment to upgrade a user's legacy sha256 hash to PBKDF2?

  1. A.During a nightly job that converts all hashes
  2. B.Right after the user logs in successfully, while the server has the real password
  3. C.Before checking the password
  4. D.Never; old hashes are fine
Answer & explanation

Correct answer: Right after the user logs in successfully, while the server has the real password

A hash cannot be reversed, so the only time you know the password is during a successful login.

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 →