What is a one-time password (OTP)?
DefinitionA one-time password (OTP) is a short code, usually numeric, that is valid for a single sign-in or for a short period and shows that the user holds a particular device or phone number.
A code that expires quickly, but still has to be typed
A one-time password (OTP) is a short code that is valid for one sign-in. It is either generated by an app or a small device the user holds, or sent to them by SMS or email. The user types it in, usually after the password, to show that the device is in their hands.
In the first case, the app and the organisation share a secret key from the moment of enrolment. From that key and the time, or a counter, both work out the same code. NIST SP 800-63B-4 (2025) places these authenticators in the category “something you have”, which is why a one-time password serves as the second factor in multi-factor authentication.
In the second case, the organisation creates the code and sends it to the user’s number or address. Here the proof is that the user receives messages at that number.
A one-time password does not stand up to phishing
For an organisation, a one-time password is better than a password alone, but it does not stop phishing. The user types it, so they can also type it into an imitation page, or read it out to a caller posing as a member of staff. The attacker uses it straight away.
NIST states it as a rule: authenticators that require a code to be entered by hand are not considered resistant to phishing, because the code is not bound to the session it was issued for.
Codes sent by SMS have a further weakness, because they depend on the telephone network. NIST classes its use as “restricted” and asks for risk indicators to be considered, such as a recent change of SIM card. The related fraud is called SIM swapping.
There is a practical burden as well: every delivery is a message that may be late or never arrive, and a user left waiting. With a passkey no code is sent.
Those who rely on SMS codes today for customer or partner sign-in, such as banks and insurance companies, have reason to consider what will replace them.
Sectors concerned
- Insurance
The agent portal opens claim files. It deserves better than a shared password.
- Public sector
Services for every citizen, and QR codes in public places that anyone can cover with a sticker.
- Banking
Strong customer authentication is already an obligation. The question is whether it also withstands phishing.