Guides
Five guides: the arithmetic, the official vectors, clock drift, secret handling and offline checks. After reading them, the numbers on the workbench explain themselves.
01
How a TOTP code is actually built
Time → counter → HMAC → truncation. Following the four steps that produce a code.
Read →02Validating an implementation with the RFC 6238 and 4226 test vectors
Checking that your arithmetic matches the 28 values the standards publish.
Read →03Clock drift and the ±2 step window: where to look when a code fails
Step boundaries, the difference between ±1 and ±2, and measuring the error in seconds.
Read →04Handling a Base32 secret and its QR code safely
Alphabet, padding, URI structure, and the risks of QR codes and screen captures.
Read →05Checking a 2FA code offline, step by step
Secret, clock and a ±2 check: confirming a code on an air-gapped machine.
Read →An example secret is already loaded. Replace it with yours and the code changes on the spot.
Open the workbench