Hash a secret seed repeatedly — H(H(H(…))) — and publish only the last value as an anchor. Now you can reveal the chain in reverse: to authenticate once, show the pre-image one step back; anyone hashes it forward and checks it matches the anchor. Because the hash is one-way, no one can run the chain forward to guess your next reveal, but everyone can verify a reveal in a single hash. It is Lamport’s one-time-password idea (the ancestor of S/KEY and TOTP), and the same forward-only chaining that links each block to the last in a blockchain.
The demo builds a length-5 chain, publishes the anchor, then reveals the 4th link — hashing it once reproduces the anchor: live demo
“A one-time password needs a server secret per login.” — a hash chain lets you spend one anchor backwards, verifying each with a single hash. cited
A chain you climb down while no one can climb up — each link verified forward, none forgeable backward. one-way chain
On the canonical compiler, a length-5 chain has anchor 33383; revealing the 4th link (3891) and hashing once reproduces the anchor: