How does TOTP work?
TOTP combines a shared secret with the current time interval and calculates a short code using HMAC.
Security
Generate RFC-compatible time-based one-time passwords from a shared secret directly in your browser.
Generate RFC-compatible time-based one-time passwords from a shared secret directly in your browser.
This tool runs in your browser. Your input is processed locally and is not uploaded.
Use this TOTP generator to test authenticator integrations and verify shared secrets. The current code is calculated locally from the entered secret and time settings.
TOTP combines a shared secret with the current time interval and calculates a short code using HMAC.
Each code is valid only for a fixed time interval, commonly 30 seconds.
Avoid exposing production authentication secrets unnecessarily, even though processing is performed locally.