{"ok":true,"result":{"slug":"totp-generator","name":"TOTP Code Generator","summary":"Generate the current and next TOTP (RFC 6238) codes for a Base32 secret, as an authenticator app would, plus an otpauth:// URI.","description":"Generate time-based 2FA codes from a Base32 secret or otpauth:// URI, with a live countdown. Supports SHA-1, SHA-256 and SHA-512 with 6 or 8 digits.","method":"POST","endpoint":"/api/v1/tools/totp-generator","plan":"free","mcpName":"totp_generator","input":{"type":"object","additionalProperties":false,"properties":{"secret":{"type":"string","description":"The shared secret in Base32 (spaces and lowercase are fine), e.g. JBSWY3DPEHPK3PXP.","maxLength":1000},"time":{"type":"number","description":"Unix time in seconds to generate codes for. Defaults to now.","minimum":0,"maximum":253402300799},"digits":{"type":"integer","description":"Code length.","default":6,"minimum":6,"maximum":8},"period":{"type":"integer","description":"Seconds each code is valid for.","default":30,"minimum":1,"maximum":3600},"algorithm":{"type":"string","description":"HMAC hash. Almost every service uses SHA-1.","default":"SHA-1","enum":["SHA-1","SHA-256","SHA-512"],"maxLength":200000},"issuer":{"type":"string","description":"Service name for the otpauth:// URI, e.g. GitHub.","default":"","maxLength":200},"account":{"type":"string","description":"Account name for the otpauth:// URI, e.g. ada@example.com.","default":"","maxLength":200}},"required":["secret"]},"example":{"secret":"JBSWY3DPEHPK3PXP","time":1700000000},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/totp-generator","page":"https://pithlab.com/tools/totp-generator"}}