Two-Factor Authentication: SMS vs App vs Security Key

Last updated: October 8, 2026

Comparison of SMS codes, authenticator apps and security keys, with shield meters showing each method's security level

A password alone is a fragile lock. Passwords get guessed, reused, leaked in data breaches and stolen by fake login pages. Two-factor authentication (2FA), sometimes called two-step verification or multi-factor authentication, adds a second check so that a stolen password is not enough on its own.

But not all 2FA methods are equal. This guide explains how it works, compares text message codes, authenticator apps and physical security keys, and shows how to set it up without locking yourself out.

What Is Two-Factor Authentication?

Authentication factors fall into three broad groups:

  • Something you know: a password or PIN.
  • Something you have: your phone, an app or a hardware key.
  • Something you are: a fingerprint or face scan.

2FA combines two of these. Typically you enter your password (something you know), then prove you have your phone or key (something you have). An attacker who only has your password gets stopped at the second step.

Note that 2FA is not perfect. Some phishing sites can trick you into giving away a one-time code in real time. But it blocks a large number of common attacks, and enabling any form of 2FA is generally much better than none.

Option 1: SMS Text Message Codes

With this method, the service sends a numeric code to your phone number by text message, and you type it in.

Pros of SMS Codes

  • Easy to understand and set up, with no app to install.
  • Works on almost any cell phone.
  • Better than having no second factor.

Cons of SMS Codes

  • SIM swapping. A criminal may persuade a wireless carrier to move your number to their SIM, receiving your codes. This is a documented type of fraud.
  • Interception and phishing. Text messages are not end-to-end encrypted, and codes can be tricked out of users by fake sites or callers.
  • Coverage problems. No signal, roaming or a lost phone can leave you without codes.
  • Number changes. If you change your number and forget to update accounts, you can be locked out.

Best for: people who need a simple option, or accounts that offer nothing else. Use it if it is your only choice, but move to something stronger when possible.

Option 2: Authenticator Apps (TOTP)

An authenticator app generates a short-lived code, usually six digits that refresh about every 30 seconds. The app and the website share a secret when you first scan a QR code, and after that the codes are calculated on your device without needing a phone signal.

Well-known apps include Google Authenticator, Authy, Microsoft Authenticator, and the built-in authenticator features in some password managers such as Bitwarden, Proton Pass and 1Password.

Pros of Authenticator Apps

  • Not tied to your phone number, so it avoids SIM-swap risk.
  • Works offline.
  • Widely supported across websites.

Cons of Authenticator Apps

  • If you lose your phone and have no backup, recovery can be painful.
  • Codes can still be phished if you type them into a fake site.
  • Transferring to a new phone needs planning. Some apps offer cloud backup or sync, others do not, so check how your chosen app handles this before relying on it. Our Google Authenticator setup and backup guide walks through it step by step.

Best for: most people. It is a strong, practical upgrade over SMS.

Option 3: Physical Security Keys and Passkeys

A security key is a small hardware device, usually connecting by USB, NFC or Bluetooth, which you tap or plug in when signing in. Many follow open standards known as FIDO2/WebAuthn. Instead of a code you type, the key performs a cryptographic check that is tied to the real website address. This is why it resists phishing: a fake site cannot get a valid response. The U.S. Cybersecurity and Infrastructure Security Agency (CISA) puts it plainly in its fact sheet on phishing-resistant MFA: "The only widely available phishing-resistant authentication is FIDO/WebAuthn authentication."

Passkeys are a related, newer approach. They use the same technology but store the credential on your phone, computer or password manager instead of a separate device, and you unlock them with a fingerprint, face scan or device PIN. Support is growing, but not every website offers them yet. Our guide to passkeys explains how they compare with passwords.

Pros of Security Keys and Passkeys

  • Strong protection against phishing.
  • Nothing to type, so nothing to intercept.

Cons of Security Keys and Passkeys

  • You must buy the hardware.
  • You should own at least two keys, so that losing one does not lock you out.
  • Not every service supports them.

Best for: email, financial accounts, password managers and anyone at higher risk, such as journalists, business owners or people who have been targeted before.

Quick Comparison: SMS vs Authenticator App vs Security Key

SMS codeAuthenticator appSecurity key / passkey
Ease of useEasiestEasyNeeds a little learning
Protection against SIM swappingWeakStrongStrong
Protection against fake login pagesLimitedLimitedStrongest (phishing-resistant)
Works without a cell signalNoYesYes
CostFreeUsually freeKeys cost money; passkeys are free
Main backup to set upKeep your number up to dateRecovery codes, sync or exportA second key or passkey

Rough ranking for security: security key or passkey, then authenticator app, then SMS, then no 2FA at all.

Which Accounts Should You Protect First?

Start with email: our guide to telling whether your email has been hacked shows what to check, and our hacked Facebook account guide shows how to recover social media.

  1. Your main email account. It can reset everything else.
  2. Password manager. It holds all your logins. See our free password manager comparison.
  3. Banking, payment and shopping accounts.
  4. Your Google account, if you use Gmail or Android. Our Gmail recovery guide shows what happens when it is hacked.
  5. Social media and messaging accounts.
  6. Cloud storage and work accounts.

How to Set Up 2FA Safely (General Steps)

Menus differ between websites, so we describe the general flow rather than exact button names. Both CISA and the FTC recommend turning on multi-factor authentication, starting with email and financial accounts.

  1. Sign in and open security settings. Look for a section named something like "Security", "Sign-in", "2-Step Verification" or "Two-factor authentication".
  2. Choose your method. Pick an authenticator app or security key if offered. Choose SMS only if it is all that is available.
  3. Scan the QR code. For an app, open it, add a new account and scan the QR code shown by the website.
  4. Enter the six-digit code to confirm it works.
  5. Save your backup codes. Most sites give one-time recovery codes. Store them in a password manager or print them and keep them somewhere safe. Do not keep them only on the same phone.
  6. Add a backup method if possible, such as a second security key or a second device.
  7. Test it. Sign out, then sign in again to check that you can pass the second step.

Mistakes to Avoid

  • No recovery plan. Losing a phone without backup codes is the most common cause of lockouts.
  • Sharing codes. No genuine company will ask you to read out your code. Anyone asking is likely a scammer.
  • Approving prompts you did not start. If you get a push notification or code you did not request, deny it and change your password, since someone may know it.
  • Screenshotting QR codes and leaving them in your photo gallery.
  • Forgetting to update the phone number on SMS-based accounts.

Should I Use an App Built Into My Password Manager?

Some password managers can store and fill authenticator codes. This is convenient but places both your password and second factor in the same place. Security experts differ on this trade-off. If you do it, protect the manager with a very strong master password and a hardware key or a separate authenticator. If you prefer separation, keep the codes in a dedicated app.

Frequently Asked Questions

Is SMS 2FA better than nothing?

Yes. It stops many automated attacks, even though stronger methods exist.

What happens if I lose my phone?

Use your backup codes, a second device, or a backup security key. Then move your accounts to a new phone. This is why backups are set up in advance.

Is Google Authenticator or Authy better?

They serve the same purpose. Differences are in backup and syncing features, which change over time, so check each app's current documentation and choose based on how you want to back up codes.

Can 2FA be bypassed?

In some cases, yes, for example through real-time phishing, SIM swapping or malware. Phishing-resistant methods reduce this risk.

Do I need 2FA if I have a strong password?

Yes. Even strong passwords can be stolen through phishing or breaches.

Related Guides

Conclusion

Any two-factor authentication is better than a password alone. For most people, the best plan is: start with your email, use an authenticator app instead of SMS where possible, add security keys or passkeys for your most important accounts, and always save backup codes. A few minutes of setup can prevent a very long recovery process.

Comments

Popular posts from this blog

How to Tell If Your Email Has Been Hacked and What to Do

How to Create a Strong Password You Can Actually Remember

How to Recover a Hacked Instagram Account