Foxcolab

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#

KindWhere the code comes fromNotes
Time-based (TOTP)An authenticator app computes it from a shared secret and the clockChanges every 30 seconds by default (RFC 6238)
Counter-based (HOTP)A hardware token or app counts up with each pressDefined in RFC 4226
Text or voiceThe service sends it to your phone numberNIST restricts it; CISA says text messages "are not encrypted"
EmailThe service sends it to your inboxAs safe as the inbox it lands in
Backup codesA printed or saved list from setupEach 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

All terms

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.

Jump to