← All topics
Quiz: Password Storage Lab: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. Why must the salt and iteration count be stored next to the hash?
- Q2. In the lesson's assumed numbers, roughly how much more does one PBKDF2 guess at 600,000 iterations cost than one SHA-256?
- Q3. When is the right moment to upgrade a user's legacy sha256 hash to PBKDF2?
- Q4. Why does the login function return "Incorrect username or password" in both failure cases?
- Q5. What does this print? (code)
- Q6. What extra resource does scrypt make attackers spend on every guess?
- Q7. Where should a pepper be kept?
- Q8. What does this print? (code)
- Q9. Why is a single SHA-256 acceptable for storing password reset tokens?
- Q10. Which test would catch a verify function that accepts every password?