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

Where should a pepper be kept?

Where should a pepper be kept?

  1. A.In the same users table as the hashes
  2. B.Inside each password hash string
  3. C.Outside the database, such as in an environment variable or a secrets manager
  4. D.In the browser's localStorage
Answer & explanation

Correct answer: Outside the database, such as in an environment variable or a secrets manager

A pepper only helps if a database leak does not also leak the pepper.

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 →