{"slug":"agentstoolshub-com-api-v1-security-totp-generator-a50f1f","title":"Generate the current TOTP two-factor code (RFC 6238) from a base32 secret — the ","host":"agentstoolshub.com","method":"GET","resource":"https://agentstoolshub.com/api/v1/security/totp-generator","category":"code","description":"Generate 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 sec","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":288,"reported_calls_30d":3,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"secret":"JBSWY3DPEHPK3PXP"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"algo":{"description":"Algorithm","enum":["SHA1","SHA256","SHA512"],"type":"string"},"digits":{"description":"Digits","enum":[6,8],"type":"number"},"period":{"description":"Period (s)","enum":[30,60],"type":"number"},"secret":{"description":"Base32 secret","type":"string"}},"required":["secret"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":288,"error":null}],"description_full":"Generate 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.","last_updated":"2026-10-17T04:24:18.327Z","schemes":["exact"]}