Skip to content
98 / 210· Stay safe
0% read
Lesson 98 of 210CybersecurityBasic · Practical TutorialCybersecurity in class

OTPs — codes that die

What the six-digit code in a text message is for, why it expires, why nobody should ever ask for it, and what to do if you gave one away.

Ellis Dennis GrahamEllis Dennis GrahamFounder & Lead Educator, Cyber Elias Academy 4 min readReleased in the 2026 notes seriesStatus: Published
A phone showing a short SMS with a six-digit code.

This lesson sets out the short codes that arrive by text, usually six digits, that prove it is you. You will learn what they are for, why they expire, and why no bank, app, or person needs you to read one aloud.

A one-time password, or OTP, is a code that works once and dies. It protects you because a thief with your password still cannot get in without the code that only reaches your phone.

Before you begin

  • A phone that receives texts.
  • About ten minutes.

When a code appears

  • You typed a password or requested a reset on a website.
  • A text arrives within seconds with a code and a name, such as your bank.
  • Type the code into the same page that asked for it.
  • The code works once, and the page then lets you continue.
  • Codes usually expire in five to ten minutes.
  • If it expires, ask the site for a new one, which replaces the old.

You will see the message appear at the top of the phone with the sender name, a code, and a warning line saying not to share it. Read that warning each time, since it is the whole lesson in one sentence.

A phone showing an SMS with a six-digit code and a do-not-share warning.
A real code message names the service and warns you not to share it. Nobody legitimate asks you to read it out.

It looks like a code is harmless because it dies in ten minutes. Ten minutes is enough time for somebody to empty an account, which is why the warning exists.

The one rule

No bank, network, or app will ever call and ask for the code. Anybody who does is trying to enter your account as you read it.

  • Never read a code to a caller, however official they sound.
  • Never type a code into a message somebody sent you.
  • Never send a screenshot of the message.
  • Never forward it to a number you do not recognise.
  • If you did not request it, somebody has your password. Change it at once.
  • A code that arrives when you did nothing is a warning, not a mistake.

None of these rules cost you anything. The genuine site will always send a new code when you ask, and a person on the phone never needs it.

A website sign-in screen waiting for a code with a resend link.
The only place a code belongs is the box that asked for it. A resend link appears if the code expires.

If you gave one away

  • Change the password on that account immediately, from another device.
  • Call the bank on the number printed on the card, not one from the message.
  • Ask the bank to freeze transfers for a day while you check.
  • Check the account for transfers you do not recognise and report any at once.
  • Turn on two-step verification again, since a thief sometimes switches it off.
  • Report the number that called, and block it.

Do not worry about feeling foolish. These calls are written by people who do this all day, and they catch careful people too.

When the code does not arrive

  • Wait a full minute before asking for another, since repeated requests cancel each other.
  • Check the signal bars, and move near a window.
  • Check whether the message went into a spam or promotions folder in the messaging app.
  • Turn airplane mode on and off to refresh the network.
  • Ask the site to send the code by voice call instead of text.
  • Do not keep pressing resend ten times, which locks the account for a while.

When it fails

Take these one at a time.

  • You typed the code and it was rejected: it expired. Request a new one.
  • You entered a code on a page that then asked for a card: close it. That page was not your bank.
  • Codes keep arriving that you did not ask for: change that password now.
  • The code arrived on another person's phone: update the number on the account before anything else.
  • A caller said the code was for a refund: there is no such process. End the call.
  • You shared a code by mistake: change the password and call the bank, in that order.

Try it now

Recognise the message before you ever need to act on one.

  • Open one account that uses a code and request one on purpose.
  • Read the whole message, including the warning line.
  • Type it, and notice how the page then moves on.
  • Request a second code and watch the first one fail.
  • Save your bank's real number in your contacts.

You can now treat a code as a key rather than an inconvenience. In the next lesson you will decide when public wifi is safe enough for banking.

Free browser practice lab

Test passphrases in the Password Strength Checker

Check how length and word diversity protect real accounts locally.

Open lab

Next step

Ready to enrol?

Tell us which course you want. We will reply with dates, the fee, and what to bring.

Admissions open · Two sessions a week · 24 Ebony Road, Port Harcourt