Skip to main content
>_devtools

HOTP Generator & Validator

Generate counter-based one-time passwords per RFC 4226 and validate a code against a look-ahead window to resynchronize a counter.

What it does

Generate and validate counter-based one-time passwords from a shared seed and counter. Set the counter and look-ahead window to match the client being checked.

Example

Algorithm: SHA1
Counter: 1
Digits: 6
Code: generated for counter 1

Limits

  • The seed is an authentication secret.
  • Counter synchronization depends on the authenticator state.