Loading lesson…
Level 1 · Apprentice0 XP
Proving who someone is, without ever storing their password.
Step 1 / 5
ProblemAn attacker copies your users table. If passwords are stored as text, or with a fast hash such as MD5 or SHA-256, they have everyone's password within hours, and people reuse passwords elsewhere.
← → step
Before this: XSS and CSRF
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Write register and login functions that store only a salted, slow hash. Verify that two users with the same password get different stored values, and that a wrong password is rejected.