ToolPilot

TOTP / 2FA Generator

Generate and verify TOTP (Time-based One-Time Password) codes for two-factor authentication. Runs entirely in your browser.

How does TOTP work?

  • TOTP TOTP (Time-based One-Time Password) generates a 6-digit code that changes every 30 seconds.
  • The algorithm divides the current Unix time by 30 to get a counter, then computes an HMAC-SHA1 with the secret key.
  • The code is extracted by dynamic truncation of the HMAC result (RFC 6238).
  • The secret key is encoded in Base32 and shared between the server and the authentication app.
  • All computation happens in your browser. No data is sent to any server.