TOTP / 2FA Code Generator

Generate a live six digit two factor code from a Base32 secret and watch it roll over every thirty seconds. The implementation follows RFC 6238, using HMAC with SHA-1 over a counter derived from the current time, which is the same calculation every authenticator app performs.

This is the same secret shown as text (or encoded in the QR code) when an app asks you to set up two-factor authentication.