opyeb totplab

Frequently asked questions

The eight questions that come up most often with TOTP and HOTP. The guides go deeper.

What is the difference between TOTP and HOTP?

HOTP (RFC 4226) increments a counter and derives each code from the same secret. TOTP (RFC 6238) puts a 30-second time step where the counter goes. HOTP needs client and server counters to agree; TOTP needs the device clock to be right.

How many digits does the code have?

Usually six, sometimes eight. The digits come from the dynamic truncation value modulo a power of ten, and client and server must use the same count.

Does a few seconds of clock error break the code?

Crossing a step boundary produces a different code. Servers normally accept the previous and next step; this tool compares ±2 and shows the error in seconds.

Where should the secret be kept?

In an authenticator or hardware key that encrypts and locks it. Avoid notes, chat, screenshots and cloud memos; if you must, print it and keep it physically.

Can scanning the QR leak the secret?

The QR contains the secret in plain form. That is why this tool draws it in the page instead of sending it to a service. Be careful with screen sharing and captures too.

Does changing 6 to 8 digits change the code?

Yes. Same time and secret with a different digit count gives a different value. Match exactly what the service expects.

Can I really log in with a code made here?

The result follows the standard, but logging in from your original authenticator is safer. This tool is for finding out why a code fails.

Can I use it with the network off?

Once the page is loaded, the computation works offline. Web Crypto only runs on https or localhost, so a file:// copy will not compute.

An example secret is already loaded. Replace it with yours and the code changes on the spot.

Open the workbench
← Back to the workbench