About

Tool No. 80 of Pikkola, 28 November 2026

This page computes a TOTP code and shows the counter, the digest, the offset and the truncation that produced it. It is a bench for the moment a code is rejected and both sides are certain the secret is right, not an authenticator.

What it does

Why the secret is on screen

A code generator that hides its inputs cannot be used to diagnose anything. The secret is in an input box, in memory, for as long as the tab is open; it is never written to storage and a reload forgets it. The page says what it does with it rather than being vague about it.

The arithmetic

Unix seconds divided by the period, floored, written as eight big-endian bytes, signed with HMAC under the chosen hash, truncated from the offset the last byte names, and reduced modulo ten to the digits. Every intermediate value is displayed, which is what makes a disagreement findable.

What is checked against what

The implementation is tested against the vectors in RFC 6238 for all three hashes at several timestamps. A code that matches those vectors is a code that matches every authenticator that also does, and that is the only claim this page makes about correctness.

What it is not

It is not an authenticator and not a password manager. It stores no secret, survives no reload, syncs with nothing and cannot hand you a code tomorrow.

Contact

A secret, a hash or a clock where this page disagrees with your authenticator is worth the details, never the secret itself: hello@pikkola.com.

Back to the studio