In one line. A one time password: a short code sent to your phone or email that proves you are the person signing in or changing a detail. It works once and expires within minutes.

OTP, explained

A password is something you know; an OTP adds something you have, the phone or inbox that receives it. A service generates a random code when you ask, sends it, and accepts it only once, for a few minutes. Even if someone has seen your password, they cannot log in without the live code, which is the idea of two factor authentication. Codes from an authenticator app work on a similar principle, generated on the device from a shared secret and the clock.

OTPs are also the most phished credential. Fraudsters call, claiming to be a bank, broker or support desk, and ask for the code; anyone with it can act as the account holder. A genuine service never needs an OTP read out over a call or chat. A message normally states what it is for, and a code that arrives for something other than what the user is doing is a warning. SMS codes can also be intercepted through SIM swap fraud, which is why app based codes are seen as stronger.

To limit guessing, services cap the tries and delay the next code after a few failures, which is why a screen can say limit reached and ask for a wait. A code that does not arrive is often a network or filter delay, not a fault in the account. Codes are for one action only; a code from a login is not accepted for another, and a new request usually cancels the earlier code.

A worked example

Illustration: a code has 6 digits, so there are 10^6 = 10,00,000 possible codes. A guesser with 3 tries has a chance of 3 ÷ 10,00,000 = 0.0003 percent per code issued. If there were no cap and 1,000 tries were allowed within the code's 5 minutes, the chance would be 1,000 ÷ 10,00,000 = 0.1 percent. That is why services cap the attempts.

Common misreadings

  • An OTP protects you even if you share it, but anyone holding it can act as you for those minutes.
  • A message with a code proves it is from the service, but fraudsters can trigger real codes and ask for them.

In the RupeeCase app

The app calls it “One time code, Email code”. Log in, Sign up and Update profile. Shown in Basic and Advanced.

How the app works it out. After a few tries the app says "Limit reached" and you wait before asking for another code.

Watch: Getting around, Your account.