Skip to content
KALANBLON
Show contents

Chapter 3 of 7 · 10 min

Quiz: protecting accounts

Hashing, salt, slow functions, brute force and two-factor authentication: let's check that you can protect accounts. You need 70% correct answers, and every answer is explained.

Quiz

7 questions · pass mark: 70%

  1. 1.Why are passwords hashed rather than encrypted?

    One answer

  2. 2.What is the salt for?

    One answer

  3. 3.Which of these functions are suitable for storing passwords? (several answers)

    Several answers possible

  4. 4.Which function of the hmac module compares two hashes in constant time?

    Complete the code

    hmac.___(calcul, enregistre)
  5. 5.Why avoid locking an account permanently after 5 failures?

    One answer

  6. 6.A TOTP code is computed from…

    One answer

  7. 7.Which message should be shown when a login fails?

    One answer

Your progress is saved on this device. Create a free account to keep your progress on all your devices.