Pcornel
Browse topics
Options
Recent
Favorites
Identity · Technical reference

HOTP

Direct answer

The authenticator computes HMAC over its counter and advances; the verifier searches a bounded look-ahead window, accepts one matching counter, advances beyond it and prevents reuse of earlier values.

When to use this

Use it when configuring, checking or troubleshooting HOTP in Authentication.

First 30 seconds

1. HOTP: code from secret + counter.

2. Counter can desync — look-ahead window.

3. Used in some hardware tokens.

4. Replaced by TOTP/FIDO2 mostly.

5. Protect seeds.

Operational verification

secret + counter → HMAC → code

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

A valid HOTP shows access to a seed-generated value within the accepted counter range, but it does not show user intent, origin, secure resynchronization or independence from phishing relay.

Suspicious evidence: Large search window, counter rollback, replay accepted, race-driven double use, shared seed, unauthenticated resync, unlimited guesses or device reset without identity assurance.

Platform / version applicability
Identity, authentication and access control
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformIdentity, authentication and access control
Scope / prerequisiteUse it when configuring, checking or troubleshooting HOTP in Authentication.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

unique shared seed + counter → HMAC/truncation → submitted HOTP → bounded counter search → atomic accept/advance → replay rejection → resynchronize/revoke

Healthy evidence: Counters advance atomically, accepted values cannot replay, look-ahead is bounded, resynchronization is controlled, seeds are unique/protected and parallel attempts cannot double-accept.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • HOTP ≠ time-based TOTP.
  • Counter window ≠ unlimited resynchronization.
  • Valid future code ≠ all skipped codes should remain valid.
  • One-time counter value ≠ phishing-resistant or transaction-bound proof.
Key checks
  • oathtool --hotp -b <secret> -c <counter> — HOTP code
  • Counter resync procedure — look-ahead window
  • Token inventory — hardware tokens
ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

A valid HOTP shows access to a seed-generated value within the accepted counter range, but it does not show user intent, origin, secure resynchronization or independence from phishing relay.

In depth

HOTP (HMAC-based One-Time Password, RFC 4226) generates codes from a shared secret and a counter that increments each time a code is generated. The server tracks the counter and accepts codes within a look-ahead window to tolerate unused codes.

HOTPTOTP
Moving factorCounterTime
Code validityUntil used (or counter moves past)Short time window
Synchronisation issueCounter driftClock drift

HOTP is used in some hardware tokens (e.g. YubiKey OTP modes); TOTP is more common in apps. Both are relayable by phishing proxies, unlike FIDO2.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docIdentity, authentication and access control current

Authoritative/upstream documentation reviewed for bounded claims in Authentication → HOTP. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://pages.nist.gov/800-63-4/ · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
counter based OTPHOTP codeevent based one time password
Embedded reference data

Quick lookup tables

Authentication → HOTP proof map

Fast identity, policy/ceremony, outcome and closure evidence boundaries for Authentication → HOTP.

BoundaryEstablishDoes not establish
Identity and scopeStable subject/account/resource mapping, owner, lifecycle state and expected actionDoes not prove credential control or effective access
Policy and ceremonyEffective entitlement or authenticator/verifier policy plus all fallback pathsConfiguration presence does not prove enforcement or assurance
OutcomeAllowed, denied, failure, expiry/revoke and target read-back tests correlated with telemetryOne success does not prove every interface, session or downstream target
ClosureOriginal end-to-end action retested; residual access/risk, owner and review trigger recordedAdministrative workflow completion alone is not closure
Confirmation

Confirm action

Continue?