HOTP vs TOTP
HOTP codes advance with a counter (each button press or login) instead of the clock. TOTP is HOTP with the counter replaced by the current 30-second time step. HOTP is used by some hardware tokens, YubiKey OTP slots and older banking systems.
Resynchronising
If a server’s counter and yours drift apart, servers usually accept a small look-ahead window. The table above shows the next five codes so you can find which counter the server expects.
Frequently asked questions
What counter should I start with?
New HOTP secrets start at 0. If you have already used codes on another device, start at the number of codes used so far.
Can I use HOTP codes in Google Authenticator?
Yes. Google Authenticator supports counter-based keys; add them manually and choose the counter-based option.