Episode Details
Back to Episodes
How Your Password Manager's 6-Digit Code Actually Works
Episode 4161
Published 1 month, 1 week ago
Description
Ever wonder how your authenticator app generates a new six-digit code every thirty seconds without ever contacting the server? The answer is more elegant than you'd expect. In this episode, we break down the TOTP algorithm — from the HMAC-based one-time password foundation to the dynamic truncation step that turns a cryptographic hash into a six-digit code. We explain why clock drift causes those panic-inducing moments when every code fails at once, and why SHA-1's known weaknesses don't actually matter for TOTP security. If you use two-factor authentication, this is how it really works under the hood.