Two-Factor Authentication Explained: SMS Codes vs Apps vs Security Keys

Two-factor authentication blocks most account takeovers, but not all methods are equal. Compare SMS codes, authenticator apps, passkeys and security keys.

Information current as of November 2026 · How we research · Report an error

Smartphone showing a security lock icon on a desk
Photo by Dan Nelson on Unsplash

Passwords get stolen all the time: through data breaches, fake login pages, or malware. Two-factor authentication (2FA) adds a second check, so a stolen password alone isn’t enough to get into your account. It’s one of the most effective security steps you can take, and it usually takes less than five minutes per account.

What “two factors” means

Security people group ways of proving who you are into three types:

  1. Something you know: a password or PIN.
  2. Something you have: your phone, a security key.
  3. Something you are: your fingerprint or face.

Two-factor authentication combines two different types. Most often, that’s your password plus something you have, like your phone. You’ll also see the terms 2-step verification and multi-factor authentication (MFA); for everyday purposes, they mean the same thing.

The main 2FA methods, compared

SMS text message codes

The site texts you a short code that you type in after your password.

  • Pros: works on any phone, very easy.
  • Cons: the weakest option. Codes can be intercepted through SIM swapping, where a criminal convinces a mobile carrier to move your number to their SIM card, and you can be tricked into typing the code into a fake website.

SMS is still far better than no 2FA at all, but use something stronger for important accounts if you can.

Authenticator apps

Apps such as Google Authenticator, Microsoft Authenticator, Authy, or the built-in code generators in many password managers create a new six-digit code every 30 seconds. The code is generated on your phone, so it never travels over the phone network.

  • Pros: free, works offline, immune to SIM swapping.
  • Cons: you can still be tricked into typing a code into a convincing fake site. Make sure the app backs up your accounts, or you’ll need recovery codes if you lose your phone.

Push notifications

Some services send a prompt to an app on your phone: “Is this you trying to sign in?” You tap Approve.

  • Pros: very convenient.
  • Cons: attackers sometimes flood people with prompts, hoping they’ll tap Approve to make them stop. Better systems show a number you must match, which helps prevent this.

Never approve a sign-in prompt you didn’t start. If you get unexpected prompts, someone has your password: change it immediately.

Passkeys

Passkeys are a newer replacement for passwords supported by Apple, Google, Microsoft and many websites. Instead of typing a password, you confirm with your fingerprint, face or device PIN. Behind the scenes, your device uses cryptography to prove who you are.

  • Pros: very strong and resistant to phishing, because a passkey only works on the real website it was created for. Nothing to remember or type.
  • Cons: not every site supports them yet, and moving between ecosystems takes a little planning.

Hardware security keys

Small USB or NFC devices, such as YubiKey or Google Titan keys, that you plug in or tap to your phone.

  • Pros: the strongest common option, and highly resistant to phishing.
  • Cons: costs money, and you should buy two (one as a backup).
Method Protection Convenience Phishing-resistant
SMS code Basic High No
Authenticator app Good Good No
Push prompt (with number matching) Good High Partly
Passkey Very strong Very high Yes
Security key Very strong Medium Yes
Passwordonly SMS codebasic Authenticator appgood Passkeyvery strong Security keyvery strong Easier to steal Resists phishing Any second factor is far better than a password alone.
Two-factor methods ranked by how well they resist common attacks. Passkeys and security keys only work on the real website they were set up for, which makes them resistant to phishing.

Which accounts to protect first

Start with the accounts that could unlock or damage everything else:

  1. Your main email account. It can reset the passwords of almost all your other accounts.
  2. Your Apple, Google or Microsoft account, which often holds your photos, backups and saved passwords.
  3. Banking and payment apps.
  4. Your password manager.
  5. Social media and messaging accounts, which scammers use to trick your friends.
  6. Work accounts and anything holding sensitive documents.

How to turn on 2FA

The exact menus vary, but the pattern is similar everywhere:

  1. Open the account’s Security or Sign-in & security settings.
  2. Look for Two-factor authentication, 2-Step Verification or Passkeys.
  3. Choose your method. Prefer passkeys, a security key, or an authenticator app over SMS when available.
  4. Save the recovery codes the site gives you. Store them in your password manager or print them and keep them somewhere safe.
  5. Add a second method as a backup when possible.

What if you lose your phone?

This is the main worry people have, and it’s why preparation matters:

  • Keep recovery codes somewhere safe and separate from your phone.
  • Use an authenticator app that supports encrypted backup or sync.
  • Register more than one method or device.
  • Keep your recovery email and phone number up to date.

The bottom line

Any two-factor authentication is a huge improvement over a password alone. SMS is the minimum; authenticator apps are better; passkeys and security keys are best. Protect your email account today, save your recovery codes, and work through your other important accounts over the next week.

2FAaccountspasswordspasskeys