---
title: "What is a one-time password?"
term: "one-time password"
description: "A one-time password (OTP) is a code that is valid for only a single login or transaction, commonly used as a second step in two-factor authentication."
url: "https://glossary.io/one-time-password/"
published: "2026-11-22T20:41:29.547Z"
updated: "2026-11-22T20:41:29.547Z"
aliases:
  - "OTP"
topics:
  - "Privacy and security"
wikidata: "https://www.wikidata.org/wiki/Q1137840"
---

# What is a one-time password?

**Definition:** A one-time password (OTP) is a code that is valid for only a single login or transaction, commonly used as a second step in two-factor authentication.

**Also known as:** OTP

Because each code works only once, and often only for a short time, a stolen OTP is far less useful to an attacker than a stolen static password. Codes are delivered by SMS or email, or generated by an authenticator app such as [Google Authenticator](https://glossary.io/google-authenticator/) or a password manager. Most authenticator apps use time-based one-time passwords (TOTP), which create a new six-digit code every 30 seconds from a shared secret.

OTPs are a common way to add [two-factor authentication](https://glossary.io/two-factor-authentication/) to a website, though SMS codes can be intercepted or phished. On sign-in forms, developers can add autocomplete="one-time-code" to the code field so browsers and phones can offer to fill in codes received by text message. [Passkeys](https://glossary.io/passkey/) are a newer, phishing-resistant alternative to both passwords and codes.

## one-time password resources

- [one-time password on Wikipedia](https://en.wikipedia.org/wiki/One-time_password)

## Related terms

- [Google Authenticator](https://glossary.io/google-authenticator/)
- [two-factor authentication](https://glossary.io/two-factor-authentication/)
- [Multi-factor authentication](https://glossary.io/multi-factor-authentication/)
- [passkey](https://glossary.io/passkey/)

**Topic:** [Privacy and security](https://glossary.io/topics/privacy-security/)

## Cite this definition

- APA: What is a one-time password? (2026, November 22). Glossary. https://glossary.io/one-time-password/
- MLA: “What Is a One-Time Password?” Glossary, Coywolf, 22 Nov. 2026, glossary.io/one-time-password/.
- Chicago: “What Is a One-Time Password?” Glossary. Coywolf. November 22, 2026. https://glossary.io/one-time-password/.

Published November 22, 2026.
