Home / Wiki / O / One-Time Password (OTP)

One-Time Password (OTP)

Compliance Risk and ControlsUpdated 05 Nov 2026

A one-time password (OTP) is a code that can be used only once, usually within a short time window, to confirm a login, a payment or a change to an account. Banks, payment apps, crypto exchanges and many online services use OTPs as a second factor so that a stolen fixed password is not enough to take over an account.

OTPs are one tool within multi-factor authentication (MFA), where they normally count as proof of "something you have", the phone or device that receives or generates the code. They are distinct from the device itself; the separate OTP token entry covers the hardware fobs and software tokens that produce the codes. In payments, OTPs have been a common way to meet strong customer authentication (SCA) rules, although regulators are increasingly pushing firms towards stronger methods.

01

One-time password in plain terms

Picture a cloakroom ticket. You hand over your coat and get a numbered ticket; when you come back, the attendant checks the number, gives you the coat and tears up the ticket. Nobody can reuse it, and a ticket from last week is worthless.

An OTP is the digital version of that ticket. When you log in or approve a payment, the bank sends or your app shows a short code. You type it in, the bank checks it, and the code dies. A thief who sees an old code cannot use it later, which is why OTPs are much safer than a password that never changes.

02

How OTP codes are generated

Most OTPs come from one of two open standards published by the Internet Engineering Task Force:

  • HOTP (RFC 4226, 2005). A counter-based method. The device and the server share a secret key and a counter; each new code is computed from the key and the next counter value.
  • TOTP (RFC 6238, 2011). A time-based variant. The counter is replaced by the current time, usually in 30-second steps, so the code changes automatically. Authenticator apps use TOTP.

Both rely on a keyed hash, so the code cannot be predicted without the secret key; the theory sits in cryptography. A third common method is not generated on the device at all: the server creates a random code and delivers it by SMS, email or voice call. This is the familiar bank text message, and it depends entirely on the delivery channel being secure.

03

OTPs in banking and payments

Banks use OTPs to approve new payees, confirm large transfers, reset passwords and authorize online card payments. In card-not-present commerce, a card-not-present (CNP) purchase may trigger a 3-D Secure check in which the card issuer sends an OTP before approving the payment. In the European Economic Area, PSD2 rules require that the code for a remote payment be linked to the amount and payee, a principle known as dynamic linking.

OTPs are also a standard step in onboarding and identity verification, where an SMS code confirms that the applicant controls the phone number given. Many wallet and exchange apps combine an OTP with biometric data or device binding.

04

Weaknesses and attacks

An OTP stops a criminal who only has a password, but not one who can intercept or obtain the code. The main attack routes are:

  • SIM swap and number porting. A criminal persuades a mobile operator to move the victim's number to a new SIM and then receives the SMS codes.
  • Social engineering. Callers posing as the bank ask the victim to read out the code. This is a common step in account takeover (ATO) and authorized push payment (APP) fraud; see also social engineering.
  • Real-time phishing. Fake login pages relay the code to the genuine site within seconds, before it expires.
  • Malware. Infected phones can read incoming messages and forward them.

For these reasons the US National Institute of Standards and Technology classes OTPs sent by SMS or voice as a "restricted" authenticator in its digital identity guidelines (SP 800-63B), and recommends phishing-resistant methods such as the passkeys promoted by the FIDO Alliance.

05

Regulatory direction

Several regulators have moved away from SMS codes for banking. The Monetary Authority of Singapore asked major retail banks to phase out SMS OTPs for account login in 2024, steering customers to in-app approval. The Central Bank of the UAE directed banks in 2025 to replace SMS and email OTPs with app-based and biometric authentication, with banks starting the switch from July 2025 and a reported completion deadline of March 2026. The common thread is that OTPs remain acceptable as one layer, but fraud teams and supervisors now treat the delivery channel as the weak point and favour fraud prevention that binds approval to a trusted device.

Last updated 05 Nov 2026