Glossary

What is HOTP (HMAC-based one-time password)?

HOTP is a standard that generates one-time codes from a shared secret and an incrementing counter instead of the clock.

HMAC-based One-Time Password (HOTP) is specified in RFC 4226. The client and server share a secret key and a counter. To make a code, the client computes an HMAC-SHA-1 over the counter, then applies dynamic truncation to produce a 6 to 8 digit number. Each use increments the counter, so a code works once. The server keeps its own counter and, because the two can drift when a user generates codes without submitting them, accepts a look-ahead window and then resynchronises. Hardware tokens that have a button but no clock typically use HOTP. TOTP, defined in RFC 6238, is the same construction with the counter replaced by a time step, and it has largely replaced HOTP in apps because it needs no synchronisation of event counts. HOTP shares TOTP's core weakness: the shared secret lives on both the server and the token, so it must be protected like a password, and a code can be phished and relayed before it is used. Brute-force attempts are limited by throttling, since the code space is only a million values for six digits. When you store HOTP secrets or backup codes in a password manager, treat the seed as a credential: keep it encrypted and out of chat logs, tickets and source control.

Give agents access. Keep the keys.

BotPassword is in early access. Request an invite and we'll email you when your spot opens.