One-time passwords (OTPs) are a widely used multi-factor authentication method that generate short-lived, single-use codes to verify possession of a trusted device. They are delivered either through SMS or an authenticator app and expire after a set time window, typically between 30 seconds and 15 minutes.
One-Time Passwords (OTP)
A common multifactor authentication method used nowadays is one-time passwords.
When somebody is going through the authentication steps, we want to check multiple factors — that's part of multifactor authentication. Maybe it's something you know, like a password, and then maybe something you have. But how do we verify something like a phone? How do we verify that you have that phone? The answer to that, a lot of times, is one-time passwords. Not always, but a lot of times we use a one-time password.
A one-time password is just a password that's given to you one time. It's meant for a short period of time — maybe that's 30 seconds, maybe it's a minute, maybe it's 15 minutes — but it's only going to be available for a certain period of time. Once you use it, then it's no longer valid, it's no longer good, and so you just use it for one time.
How do we use it to verify a phone? This is either going to be sent to that device with something like a text message, or it's going to be generated on that device, like with an authenticator app. Essentially what that code is, is it's specific to this device, and so now you're going to use that code in order to log into a system, or be able to access, as part of the authentication process.
One thing to note is that one-time passwords could be called many different names. Some may call it a one-time PIN, or passcode, or authorization code, or perhaps a dynamic password. These might mean a little different terms, but essentially they all mean that you're going to be given a code as part of your login process, as part of your password process.
A lot of times it goes hand in hand with two-step verification, where it asks for your username and password on one screen, and then the second step it asks for that one-time password. Most of the one-time passwords that I've seen come in either a six or an eight number code that gets entered in during your login process.
There is something called in-band and out-of-band, and that is how the code comes to you. If it's in-band, it means that it's in one of the bands you're already used to receiving communication on. For instance, SMS — a lot of us are already receiving text messages, and so as part of your login process maybe you receive a text message. That's called in-band. Out-of-band is when you receive it from maybe an authentication app.
Here are some examples of different one-time passwords. The idea is you'll be given a code that you'll enter in during the login process, but if you don't enter it in in a quick enough time, then that code will change. Perhaps it expires in 30 seconds, maybe it's a minute, maybe it's 15 minutes, but it'll eventually expire, and then you'll have to request a new code, or a new code will be generated for you, and then you'll enter that in. There are multiple standards out there for these one-time passwords.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →