Multi-Factor Authentication via TOTP Step-by-Step
UML Sequence Diagrams · made in Skemio

What it shows
- Base32 shared secrets configure both authenticator apps and verify servers
- HMAC-SHA1 computes hashes using current Unix time divided by 30-second windows
- Allow +/- 1 step drift window to prevent clock skew validation failures
The takeaway
TOTP works offline because client and server independently compute HMACs from shared secrets and synchronized clocks.
- #TOTP
- #MFA
- #CyberSecurity
- #SystemDesign
- #DevOps
- #WebDev





