Hashing or Encryption?

Talk it through out loud with your AI coach.

The problem

  • easy

A junior developer says they will encrypt user passwords and hash credit card numbers. Explain the difference between hashing and encryption, and which one fits each case.

What a strong answer covers

  • The basic difference between one-way and reversible transformations.
  • Which fits passwords, and what kind of function to use.
  • Which fits card numbers, and a better option than storing them.
  • Why the junior developer's plan is the wrong way round.

Common mistake: Encrypting passwords, which means anyone with the key can read them all.

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

Practise it out loud