Choose your depth. Learn at your own pace.
Understand it
An OTP is a one-time password or verification code. A service may send or generate one to check a sign-in, password reset or payment. The message tells you what the code is for.
Enter a code only in the genuine service for an action you started and understand. Do not read it to a caller or send it to someone in a message, even if they claim to cancel fraud. If you did not start the action, do not approve it.
Under the hood
Codes have limited lifetimes but can be relayed before they expire. Possession of the message is different from proving the website is genuine. The server should bind a challenge to its intended action and prevent reuse; implementations vary.
Practitioner perspective
Distinguish sign-in, recovery and transaction challenges in evidence. Redact secrets from logs while recording challenge purpose, result and session identifiers. An OTP success event alone does not establish informed user consent or phishing resistance.
Watch it work
A fictional, simplified model. Select a component to inspect it, or follow the steps in order.
A code is permission, not just a number
Follow a real code request. Expiry does not undo a completed sign-in or payment.
Someone can trigger a real code and then deceive its owner into forwarding it.
How to use this example
Select Next step to read at your own pace, or Animate step to watch one exchange. Nothing advances until you choose.
What it means
Everyday example
State in this scenario
Inspect components & read every step
- Unknown requester
A person asking you to do something before you have verified who they are.
Example: A message asks you to forward a sign-in code. Keep the code private and check the request independently.
- You
The person making the decision in this fictional example.
Example: You decide whether to share information, approve a request or check it first.
- Real account
The actual account service, rather than someone impersonating it.
Example: A sign-in code can authorize access to this account; forwarding it can give someone else that access.
Code shared
Someone can trigger a real code and then deceive its owner into forwarding it.
- Unknown requester Real account: Reset request. The requester starts an account-reset action.
- Real account You: Real code. The service sends you a code for that requested action.
- You Unknown requester: Code forwarded. The requester receives the code while it can still be used.
- Unknown requester Real account: Action completed. If accepted, the code completes the requested action.
Code kept private
An unexpected request is a reason to verify independently, not to forward the code.
- Unknown requester Real account: Reset request. The requester starts a reset you did not ask for.
- Real account You: Unexpected code. You read the action described by the service.
- You Real account: Direct review. You keep the code private and open official security settings.
Shared it already
Act on the purpose of the code; waiting for expiry does not reverse a completed action.
- You Real account: Official recovery. Contact the genuine provider and describe what was approved.
- Real account You: Secure access. Follow account or payment-specific recovery instructions.
Fictional teaching trace. One moving dot represents an exchange, not a measured network capture.
Open the detailed lesson walkthrough
Explore the system
Reset requested
Someone starts a password reset.
Read every step without animation
Code forwarded
- Reset requested. Someone starts a password reset.
- Code arrives. The real service sends the account owner a code.
- Code forwarded. The requester may complete the reset.
The message was real; the person requesting it was not.
Code kept private
- Unexpected code. You did not request a reset.
- No reply. You keep the code private.
- Account review. You open the official account security page.
Review unexpected activity without handing over the code.
What could go wrong
A scammer starts a real reset, then asks the account owner to forward the real code.
What you can do
- Read the purpose before entering a code.
- Reject unexpected prompts and use the official recovery page if you shared one.
Common mistakes
- One-time does not mean safe to share once.
- An authentic text can accompany a fraudulent request.
Check your understanding
Active recall: explain this idea in 30 seconds
An OTP is a one-time password or verification code. A service may send or generate one to check a sign-in, password reset or payment. The message tells you what the code is for.
Now give an example and name one limitation. Revisit the explanation if you get stuck.
Primary sources
Original explanations informed by these specifications and official resources. Source versions and lesson review are separate from product updates.
Content reviewed 2026-09-10. Read the editorial policy.