Cybersecurity

Two-Factor Authentication: Which Kind Is Best?

Compare text codes, authenticator apps, push prompts, passkeys and security keys, and set up backups that work.

Key takeaways

  • Two-factor authentication means a stolen password is no longer enough by itself.
  • Passkeys and security keys resist phishing because the browser ties them to the real site's domain.
  • Authenticator app codes avoid phone-number risks but can still be typed into a convincing fake page.
  • Text message codes are the weakest common choice, yet still worth enabling when nothing better exists.
  • Always set up a backup factor and store recovery codes before you lose a phone.

The strongest common options are passkeys and hardware security keys, because they only work on the genuine website. Authenticator apps come next, followed by push approvals with number matching, then codes sent by text message or voice call. Any of these is much better than a password alone.

Pick the strongest method each important account supports, and add a second method as a backup. The method you can recover from is as important as the method that keeps others out.

What counts as a second factor

Sign-in evidence usually falls into three groups: something you know (a password or PIN), something you have (a phone or key) and something you are (a fingerprint or face). Two-factor authentication (2FA) requires two different groups. Multi-factor authentication (MFA) is the broader term for two or more.

Two passwords don't count, since both can be stolen the same way. A phone unlocked by your face, holding a private key, does: the phone is something you have and the face unlocks it.

The common methods

Text message or voice codes. The service sends a number to your phone. It works on any phone with no setup. The weaknesses: criminals can persuade or bribe a carrier to move your number to their SIM card (a SIM swap), messages can be forwarded or intercepted in some circumstances, and you can be tricked into reading the code to a caller.

Email codes or links. Only as strong as the email account, which often also receives password resets, so it adds little there.

Authenticator apps. The app and the service share a secret, usually delivered by QR code. Both combine it with the current time to produce a short code, following the TOTP standard (RFC 6238). Codes work offline and don't depend on your phone number.

Push notifications. You approve a prompt on your phone. Easy, but an attacker with your password can send prompt after prompt hoping you tap yes. Number matching, where you type a number shown on the sign-in screen, reduces that. See MFA fatigue and code-stealing tricks.

Security keys and passkeys. These use public key cryptography under the FIDO2 and WebAuthn standards. Your device signs a challenge, and the signature is bound to the website's domain. There is no code to steal or retype.

Second factors side by side
Text message Works on basic phones Exposed to SIM swaps Code can be phished Needs signal Authenticator app Works offline Not tied to your number Code can still be phished Needs backup or transfer Push approval One tap, easy to use Open to repeated prompts Number matching helps Needs a data connection Passkey or key Bound to the real domain No code to give away Not supported everywhere Needs a backup option Text message Works on basic phones Exposed to SIM swaps Code can be phished Needs signal Authenticator app Works offline Not tied to your number Code can still be phished Needs backup or transfer Push approval One tap, easy to use Open to repeated prompts Number matching helps Needs a data connection Passkey or key Bound to the real domain No code to give away Not supported everywhere Needs a backup option

Why phishing resistance is the dividing line

A modern phishing site can act as a relay. You type your password into it; it types the password into the real site; the real site asks for a code; the fake asks you for it; you provide it; the attacker is in. The code was valid and arrived within its time window.

Security keys and passkeys break this chain. The browser tells the authenticator which domain is asking. A look-alike domain gets either no credential or a signature that the real site rejects. You don't have to spot the fake.

How a relay site beats a typed code
You Fake site Real site Password typed into the look-alike 1 Same password replayed 2 Code sent or expected from your app 3 You type the code 4 A passkey would not respond to this domain Code relayed in time 5 Session granted to the attacker 6 You Fake site Real site Password typed into the look-alike 1 Same password replayed 2 Code sent or expected from your app 3 You type the code 4 A passkey would not respond to this domain Code relayed in time 5 Session granted to the attacker 6

Choosing by account

Not every account needs the same strength.

  • Email, password manager, phone-platform account. These can reset or unlock others. Use passkeys or security keys, with a backup.
  • Banking and money. Use the best option offered. Banks vary, and some only support texts or their own app.
  • Work accounts, especially administrators. Phishing-resistant methods are worth requiring.
  • Social media. An authenticator app or passkey; takeovers are used to scam your contacts.
  • Low-value accounts. Anything available is fine, along with a unique password.

If you are likely to be targeted personally, for example as a journalist, public figure or holder of significant cryptocurrency, use hardware security keys and remove text message fallback where the service allows.

Setting it up

  1. Open the account's security settings and look for two-step verification, two-factor authentication or passkeys. Names vary.
  2. Choose the method and follow the prompts. For an authenticator app, scan the QR code and enter the first code.
  3. Save the recovery codes. Print them or store them in your password manager, ideally not in the same place as everything else for your most important accounts.
  4. Add a second method: another key, a passkey on a second device, or a backup app.
  5. Review trusted devices and remove old ones.
  6. Test by signing in from a private window.

Treat the setup QR code like a password. Anyone who photographs it can generate your codes.

Phone numbers and SIM swaps

Even if you prefer an app, many sites keep your number as a fallback, and the weakest method often decides the account's security. Where possible, remove text recovery once stronger methods and codes are in place. Ask your mobile carrier about an account PIN, port-out lock or similar protection.

A sudden loss of service when you are in a normal coverage area, particularly with account alerts, is worth an immediate call to your carrier from another phone.

Backups, codes and exceptions

Many services offer fallbacks you may not have noticed, and each one deserves a deliberate decision.

Recovery codes are single-use passwords that skip the second factor. Store them as carefully as the password itself, cross off any you use and generate a new set if you think someone has seen them. Creating a new set normally cancels the old one.

App passwords let older software, such as some mail programs, connect without a second-factor prompt. Each one is a way in that bypasses your stronger method. Delete those you no longer use, and replace old software where you can.

Remembered devices skip prompts for a while. That's sensible on your own locked laptop and unwise on anything shared. Most services let you forget all of them at once.

Support-based recovery is the path taken when everything else is lost. It can involve waiting periods or identity checks. Slow recovery is frustrating, but it is also what stops an impostor with a good story.

Rolling it out for a family or small team

People abandon security that surprises them, so introduce it in order.

  1. Start with email accounts, since losing one affects everything else.
  2. Help each person add two methods and save recovery codes while sitting together.
  3. Explain the one rule that matters most: nobody legitimate will ask for a code or an approval you didn't start.
  4. Give someone who struggles with apps a simpler option, such as a security key kept on a keyring or the passkey prompt on their own phone.
  5. Agree what happens when a phone is lost, including whom to call.

For a business, require 2FA through the central account system where possible, decide how an employee's identity is verified before a factor is reset and keep at least two protected administrator accounts so one lost device doesn't lock out the organization. Reset requests made by phone or chat are a favorite target for impersonators, so verify them through a second route.

Losing a phone

This is where poor setups hurt. Before it happens:

  • Check whether your authenticator app syncs or backs up, and how that backup is protected.
  • Move codes to a new phone before wiping the old one.
  • Keep recovery codes somewhere you can reach without the phone.
  • Register two security keys if you use them, and store one apart.

After a loss, use the backup method to sign in, remove the lost device from each account and use your platform's remote lock or erase. Account recovery explains why the fallback paths deserve scrutiny.

Review these settings once or twice a year, and after any big change such as a new phone number, a new job or a breakup. Old numbers get reassigned to strangers, work addresses stop working and a device you sold may still be listed as trusted. Ten minutes with your most important accounts catches most of it.

Habits that keep it working

Never share a code with someone who calls, texts or messages you, whatever they claim. A real support agent doesn't need it. Deny prompts you didn't start, then change your password, because someone evidently knows it. Be wary of messages asking you to "verify" by scanning a QR code.

Remember the limits. A second factor guards the sign-in. It doesn't help if malware steals a session afterward, and it doesn't stop you from approving a malicious app's request for account access.

Common questions

Is an authenticator app enough for most people?

For many accounts, yes, particularly with unique passwords. Passkeys are worth adopting as sites offer them because they are both safer and quicker.

Does 2FA slow down every login?

Usually not. Most services remember a trusted device and ask again only on a new one or before sensitive actions. Don't mark shared or public computers as trusted.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in Cybersecurity →

Latest news on this topic