Loading lesson…
Level 1 · Apprentice0 XP
Hashing, encryption and signatures: which one, when, and never your own.
Step 1 / 6
ProblemA company stores passwords encrypted with one key. The key is in the config file. A breach takes both, and every password is revealed.
← → step
Before this: Authorization and secrets
🛠️ 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.Implement webhook verification: compute an HMAC-SHA256 of the raw body with a shared secret and compare it to the signature header in constant time. Write a test with a valid and a tampered body.