What is a one-time password?

DefinitionA 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 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 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 are a newer, phishing-resistant alternative to both passwords and codes.

one-time password resources

Topic: Privacy and 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/.

HTML link
<a href="https://glossary.io/one-time-password/">What is a one-time password?</a>

Published