The complete guide to 2FA: why a password isn't enough
Key takeaways
- 2FA stops attackers from logging in even when they have your password
- TOTP (time-based one-time password) is the most common 2FA form, generating 6-digit codes in a phone app
- Save backup codes offline (your only recovery path if you lose your phone)
- SMS 2FA is better than nothing but vulnerable to SIM hijacking; TOTP is safer
However strong, a password is only 'something you know'. Once leaked, it is worthless. Two-factor authentication adds 'something you have' on top, so a stolen password alone is not enough to get in.
Three kinds of 2FA, with different strength
- SMS codes: lowest barrier, but vulnerable to SIM swap and real-time phishing relays
- Authenticator apps (TOTP): codes generated offline with no network dependency
- Hardware keys (FIDO2 / YubiKey): a physical device with the strongest phishing resistance, best for email, payments, and cloud storage
How TOTP actually works
At enrollment, the site and your app share a random seed. From then on, both compute a 6-digit number from 'current time + seed'. Because the algorithm and clock agree, the results match; the seed lives only on your device and never passes through a server. That also means an inaccurate phone clock makes every code fail.
Avoid SMS-only where you can
A SIM can be hijacked through a social-engineered port-out, and SMS codes can be relayed in real time by a phishing page. If you can use an authenticator app or a hardware key, do not make SMS your only factor.
A sensible setup order
- 1
Email first
Email is the root of every other account recovery. Protect it before anything else.
- 2
Then payments and cloud storage
These carry the most direct loss: money and files. Prefer an authenticator app or a hardware key.
- 3
Social and work accounts next
These are the most numerous, but single-point loss is more contained. Migrate gradually.
- 4
Save the backup codes
Enrollment produces a set of one-time backup codes. Print them or store them on offline media; they are the only recovery path if the phone is lost.
One thing to do before changing phones
TOTP seeds live on the old phone. Before switching, export or migrate the authenticator data from the old device, or rebind on the new device using backup codes. Selling the old phone with no backup locks you out of your own accounts.
2FA does not replace a password manager
2FA defends the login after a password has already leaked. It does not fix credential stuffing caused by password reuse, and it does not stop every phishing page from capturing the one-time code (some implementations resist it, not all). The complete combination is: a password manager for a unique strong password per site, and 2FA for the second lock.
Frequently asked questions
- What if I lose my phone?
- If you saved backup codes, use one to sign in and rebind a new device. Without backup codes you have to go through the platform's account recovery, which usually requires identity proof.
- Can I use one TOTP app for multiple accounts?
- Yes. Google Authenticator, Authy, and 1Password all let you manage multiple accounts, each shown as a separate entry.
- Which is safer, SMS or TOTP?
- TOTP is safer. SMS can be intercepted via SIM hijacking or insider access at the carrier; the TOTP seed lives only on your device and never passes through a third party.
- The code is always rejected?
- Check that your phone's clock syncs automatically. TOTP depends on time; a device clock off by more than half a minute will fail consistently.
Sources & further reading
- TOTP spec (RFC 6238) — technical standard for time-based one-time passwords
- Google Authenticator — Google's official TOTP app
- Authy — TOTP app with cloud backup support
About the author
clickone Security Team
Privacy architecture & abuse prevention
Privacy belongs in the architecture, not in the policy.
We are the clickone security team. We own privacy architecture and abuse prevention.
More from this team