Glossary
One-time password (OTP)
Definition
One-time password (OTP): A code that is valid for a single sign-in or transaction and expires after use or after a short time. OTPs come from authenticator apps, hardware tokens, text messages or email, and are a common second step in two-factor authentication.
Also known asOTPone-time codeverification codepasscode
In short
A one-time password (OTP) is a code that works for a single sign-in or action and then expires, so a copy stolen later is useless. OTPs come from authenticator apps, hardware tokens, text messages and email. They stop attacks that rely on a reused or leaked password, but a fake sign-in page can still relay a code to the real site before it expires.
Key takeaways
- An OTP is valid once and for a short time; the service must refuse it a second time.
- Authenticator apps compute codes from a shared secret and the time; text and email codes are sent to you.
- Codes sent by text message aren't encrypted, and NIST restricts their use.
- No typed code is phishing-resistant, because a fake page can pass it on in real time.
- Never read a code to someone who calls or messages you.
Last reviewed 3 December 2026 by Foxcolab Team
A one-time password (OTP) is a code that works for a single sign-in or action and then expires. Because each code is used once, a copy stolen afterwards is worthless, which makes OTPs a common second step in two-factor authentication. You've met them as the six-digit number in an authenticator app, the code in a text message and the "your verification code is…" email.
Kinds of OTP#
| Kind | Where the code comes from | Notes |
|---|---|---|
| Time-based (TOTP) | An authenticator app computes it from a shared secret and the clock | Changes every 30 seconds by default (RFC 6238) |
| Counter-based (HOTP) | A hardware token or app counts up with each press | Defined in RFC 4226 |
| Text or voice | The service sends it to your phone number | NIST restricts it; CISA says text messages "are not encrypted" |
| The service sends it to your inbox | As safe as the inbox it lands in | |
| Backup codes | A printed or saved list from setup | Each code works once |
See TOTP for how app codes are calculated.
How services check them#
NIST's SP 800-63B-4 sets the rules: verifiers "SHALL accept a given OTP only once while it is valid," time-based codes must have a defined lifetime, and failed attempts are limited, at most 100 in a row, so nobody can guess through a million six-digit combinations.
Where OTPs fall short#
- Real-time phishing. A fake sign-in page asks for your password and then your code, and passes both to the real site within seconds. NIST says authenticators that need you to type a code "SHALL NOT be considered phishing-resistant." A passkey closes that gap.
- Handing the code over. No real service needs you to read a code back to a caller. A request to "confirm the code we just sent" is a vishing or smishing attempt.
- Leaving text codes switched on. CISA notes that adding an authenticator app doesn't remove text-message codes from an account, which leaves a weaker way in (CISA).
In Foxcolab#
Foxcolab's two-step verification uses an authenticator app: after your password, you type the six-digit code it shows, which changes every 30 seconds. Setup also gives you eight backup codes, and each works once. If you reset your password, Foxcolab can email you a six-digit verification code that works for 10 minutes: to your sign-in address if it's at another provider, or to your recovery email for a Foxcolab Mail address (reset steps). Foxcolab Messenger signs you in with a code sent by text message. Turn on two-step verification to add the app code to your account.
Keep exploring
Related terms
- TOTP (time-based one-time password)TOTP is the algorithm behind authenticator-app codes. Your app and the service share a secret and each computes the same short code from it and the current time.
- Two-factor authentication (2FA)Two-factor authentication asks for a second kind of proof after your password, so a stolen password alone can't get someone into your account.
- Multi-factor authentication (MFA)Multi-factor authentication asks for two or more different kinds of proof at sign-in, so a stolen password alone isn't enough. Here's what counts as a factor and which kinds resist phishing.
- Backup codesBackup codes are one-time codes you get with two-step verification, for when your authenticator app isn't available. Each works once, and they need storing as carefully as a password.
- PasskeyA passkey replaces a password with a key pair your device holds. The site stores only the public half, and the passkey works only on the site it was created for.
- SmishingSmishing is phishing by text message. A fake delivery notice, bank alert or IT warning pushes you to tap a link or call a number. Here's how it works and how to protect your accounts.
- VishingVishing is voice phishing. A caller poses as IT, a bank or an official to get a password, a sign-in code or a payment, and spoofed caller ID makes it convincing. Here's how to shut it down.
- Man-in-the-middle attackIn a man-in-the-middle attack, someone sits between two parties and relays their traffic so they can read or change it. Encryption helps only when you also verify who is on the other end.
Where Foxcolab uses it

Foxcolab
Private work tools, without the ads.
Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.