Token Devices: The Secret Behind the Changing Code
A token device supplies evidence used for authentication: checking that someone controls an accepted sign-in method. It might display a code you type into a login page, or answer a request using secret data kept by the device.
An authenticator app can perform related work in software. Its protection depends on what secret it holds and how it proves control of that secret. A small plastic case doesn't tell you the answer.
How can an offline device know the right code?
A time-based one-time password, or TOTP, is calculated from a shared secret and a value based on the current time. Both the authenticator and the service checking it know the secret and can make the calculation.
That lets a device display a code without receiving a new message from the service each time. The number changes as time advances, but it isn't simply a fresh random number the server somehow guesses.
The TOTP specification describes this shared calculation. Other one-time-password systems use different changing values, so not every token follows a clock or uses the same interval.
How Does Your Authenticator Work Without the Internet?
Suppose a person signs in with a password and the current code from their registered device. The password supplies something they know. The device supplies evidence of something they have: control of the authenticator holding the secret.
These are two authentication factors: different kinds of evidence. Typing the device's code doesn't make it another memorized password, because it was generated from the secret held by the authenticator.
A current code can still reach the wrong person
A deceptive login page can ask for the same code as the real service. An attacker may relay a still-valid code while it can be accepted. Its short lifetime limits the opportunity; it doesn't stop that live deception.
This is why the National Institute of Standards and Technology's authentication guidance doesn't classify one-time-password authentication as phishing-resistant. Phishing is deceptive contact intended to prompt a harmful action, such as handing a sign-in code to an impersonator.
A cryptographic authenticator works differently. It uses a secret key—a data value used in a mathematical security operation—to produce proof in a communication exchange. The person needn't copy a displayed code.
An appropriate protocol can bind that proof to the real service or protected connection. That binding, rather than the absence of a screen, is what prevents the proof from being usable in the same way at an impersonating site.
- Make a stolen password useless without the key in your hand.
- Sign in with a tap instead of typing a code.
- Protect Google, Microsoft, Apple and more than 1,000 other accounts.
Unlocking the authenticator adds another check
Some authenticators require a PIN, a personal identification number, or a biometric check such as a fingerprint before they can be used. That activation can combine possession with another authentication factor.
Features depend on the authenticator and the protocol it uses. A device brand or the shape of its connector doesn't establish that every supported mode has the same protection.
The word token also appears in access tokens, credentials that an app presents to a service. The device helping you sign in and the access credential used afterward are different parts of the exchange.
Two-Factor Authentication: A Stolen Password Isn’t Enough

Smartcards: The Chip Can Keep the Secret and Do the Work

Vishing: Why a Caller Wants Your Sign-In Code

QUOTE:
"Amateurs hack systems, professionals hack people."
