← All lessons
Auth
6 lessons you click through step by step
- How authenticator codes workTurn a shared secret and the clock into a 6-digit code with HMAC-SHA1, then knock the clock off
- How cookies and sessions workLog in and watch the browser send your session cookie back
- How OAuth login worksSign in with another site and trade a code for a token
- How passkeys workSign a challenge with your device, then try to replay it
- How hashing worksChange one letter and see why a hash can't be reversed
- How JWT login worksHash a password with bcrypt, sign a token, then try to forge one