Skip to content
BENIBIX Learn

Time-Based One-Time Password (TOTP)

Development🔑 AuthAuthentication

Also known as TOTP, One-Time Password, OTP Code, Authenticator Code

A short code that changes every 30 seconds. It is made from a shared secret and the time.

Think of it like

Think of it like a code that changes every half minute. Only you and the site know how.

Example

Emma logs in, then opens her authenticator app. It shows 492 817, she types it in, and she is through.

Why it matters

It adds a second lock that a stolen password cannot open. It works offline, with no text message needed.

Definition

A TOTP is a short code, usually six digits, that changes every 30 seconds. Your phone and the site share a secret, set up once with a QR code. Each side mixes that secret with the time now to make the same code. You type the code after your password. A stolen code is useless a minute later, because a new one has taken its place.
The phone and the site never talk. They make the same code from the same secret and clock.

Common mistake

Keeping the setup QR code in a photo album or in notes. Anyone who finds it can make your codes forever.

Key takeaways

  1. 1
    A shared secret. Set up once with a QR code.
  2. 2
    Based on time. A new code every 30 seconds.
  3. 3
    A second factor. Typed after the password.