TOTP Code Generator
security_totp_generatorGenerate the current TOTP two-factor code (RFC 6238) from a base32 secret — the same codes authenticator apps produce. Supports 6/8 digits, 30/60-second steps and SHA-1/256/512. Deterministic HMAC via Web Crypto; nothing is stored. Use this when an agent needs to rFC 6238 2FA codes from a base32 secret. x402 price $0.01/call (USDC, eip155:8453).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| algo | Yes | Algorithm | |
| digits | Yes | Digits | |
| period | Yes | Period (s) | |
| secret | Yes | Base32 secret |