go2fa

For developers

Building or debugging a two-factor login? Compute a code for any moment, see every intermediate value, run the RFC test vectors and make a fresh secret. All of it happens in this tab; nothing is sent or stored.

Code at any time

Enter a secret to see the steps.

Tip: use a test secret here. For your own accounts use the main tool.

Test vectors

Runs the published vectors on this page: RFC 6238 Appendix B (SHA-1, SHA-256 and SHA-512 at six times each) and RFC 4226 Appendix D (ten counters, code and 31-bit value). Matches are counted, not assumed.

Generate a secret

For your own test setup: 20 random bytes from the browser’s secure random generator (160 bits, the size RFC 4226 recommends), as Base32, an otpauth:// link and a QR code. It is made in this tab and never leaves it.

See how a code is made, step by step · Open the main tool