Authenticator developer resources
Use these references and tools when developing or checking an authenticator integration. Work with test secrets rather than live account credentials.
- TOTP and HOTP test vectorsA known test case is more useful than comparing two unknown implementations. The OTP specifications include published inputs and expected outputs for checking an…
Check calculations against known values
Start with the official HOTP and TOTP test vectors. Check the exact key encoding, moving value, algorithm, and output length before comparing results.
Inspect the setup flow
An accurate code calculation is only one part of an integration. Inspect setup links and QR contents, and confirm how the authenticator handles the settings your application requires.
Keep test data separate
Use dedicated sample keys in tests, screenshots, and issue reports. Never reuse a public test secret for a real account.
Tool version: 1.9.0
How we check the OTP calculations
Published inputs, visible results
The browser test runs 10 HOTP examples from RFC 4226 Appendix D and 18 TOTP examples from RFC 6238 Appendix B. TOTP covers six fixed timestamps with SHA-1, SHA-256 and SHA-512. The results show expected and calculated values, including leading zeros and timestamps beyond 2038.
The same calculation module
The generators and the interactive test are built from the same OTP calculation module. HMAC operations use the browser’s Web Crypto API. You can rerun the examples without an account or a production secret; the fixed inputs make the comparison independent of your current device time.
What still needs separate testing
Passing these 28 examples is not a complete security assessment. Provisioning, replay protection, rate limits, key storage and recovery belong to the application accepting the codes. Our local checks also cover malformed setup links, Base32 validation, time boundaries and 64-bit counters; the interactive page specifically reports the 28 published examples.
If you find a mismatch, include the tool version, browser version and public example involved. Do not send a real account key, setup QR image or recovery code.