What is two-factor authentication and which type is most secure?
Two-factor authentication (2FA) requires something beyond your password to sign in, so a stolen password alone is not enough. Not all second factors are equally strong.
From weakest to strongest (generally)
- SMS codes: better than nothing, but vulnerable to SIM-swap attacks and interception, and phishing sites can relay codes in real time.
- Email codes: only as secure as your email account.
- Authenticator apps (TOTP): codes generated on your device. No SIM-swap risk, but a convincing phishing page can still trick you into typing a code.
- Push notifications: convenient, but attackers sometimes spam approval requests hoping you tap "approve." Number-matching prompts reduce this.
- Hardware security keys and passkeys (FIDO2/WebAuthn): cryptographically tied to the real website's domain, so they resist phishing. This is currently the strongest widely available option.
Practical tips
- Turn on 2FA first for email, password manager, banking and cloud storage, since those unlock everything else
- Save backup codes somewhere safe and offline
- Register more than one security key or device so losing one does not lock you out
- Remove SMS as a fallback once stronger methods are set up, if the service allows
Which 2FA method do you use for your most important accounts? Have you ever been locked out, and how did you recover?
Comments · 3
The ranking makes sense from a threat-model view: SMS is vulnerable to SIM swaps, while hardware keys resist phishing because they check the site you're on. Does anyone have a sensible recovery plan for when you lose the key itself?
Practical tip: if you go with a hardware key, buy two and keep one somewhere safe. And save your backup codes offline, because being locked out of your own account is the real nightmare.
For anything touching money, like banking or brokerage, I'd bump the 2FA upgrade to the top of the list. The cost of a key is trivial next to the downside of a drained account.