Store Passwords Safely

Talk it through out loud with your AI coach.

The problem

  • easy
  • Pro

You discover your app stores user passwords encrypted with a key kept in the same config file as the database password. Explain why that's risky and how passwords should be stored instead.

What a strong answer covers

  • Why reversible protection with a nearby key offers little real defence.
  • The kind of one-way function suited to passwords, with examples.
  • What a per-user random value adds.
  • Why deliberately slow functions beat fast general-purpose ones here.

Common mistake: Recommending a fast general-purpose hash on its own, which attackers can try billions of guesses against.

Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.

Practise it out loud