A one-time code is a short-lived secret used to verify a login, password reset, or account recovery request. It may be delivered by SMS, email, or an authenticator app, and it expires after a brief window or after first use. Because the code is temporary and changes often, it is meant to reduce the value of stolen passwords and help confirm that the person signing in controls a trusted channel.
In cyber security, one-time codes matter because they are often part of multi-factor authentication and recovery flows. Attackers try to intercept them by taking over a phone number through SIM swapping, compromising an email inbox, or tricking a help desk into sending a fresh code. Defenders use them to add a second check, but SMS-based codes are weaker than app-based or hardware-backed methods when an attacker can control telecom or email recovery paths.


