awesome privacy guide

Which 2FA is safest, and where to turn it on first

8 min read

Text codes are the weakest kind of two-factor authentication and passkeys the strongest. Why, which accounts to do first, and how not to get locked out.

the short answer

Passkeys and security keys are the safest kind of two-factor authentication. Codes from an authenticator app come next, and text messages are the weakest, though they're still far better than nothing. Start with your email, because anyone who gets into it can reset your other passwords. Then lock your phone number with your network, keep the backup codes somewhere safe, and never hand a code to someone who contacted you.

Which kind of 2FA is safest?

Two-factor authentication means a stolen password isn't enough on its own. CISA, the US government's cyber security agency, ranks the different kinds by what can get past each one, and this is its order, weakest first.1

Text message codes can be taken without anyone touching your phone. In a SIM swap, a criminal talks your mobile network into moving your number to a SIM they hold, and from then on your texts go to them.1 Cifas, a UK fraud prevention service, received nearly 3,000 reports of SIM swaps in 2024, more than ten times as many as the year before.2 The NCSC still says a text code is a huge improvement on no second step at all.3

Plain "Is this you?" prompts on your phone are next. Attackers can keep sending them in the hope that you'll eventually accept one. In 2022, that's how someone got into Uber. They'd probably bought a contractor's password, kept trying to log in, and the contractor accepted one of the prompts in the end.4

Six-digit codes from an authenticator app are made on your phone, so a SIM swap doesn't get them. Some prompts show a number on the login screen and make you type it in on your phone, which is much harder to accept by accident, and CISA ranks those alongside app codes.1 Microsoft Authenticator does this for all its prompts now.5 An app code can still be caught by a fake login page, though. If you type it into a copy of the real site, the attacker can use it to log in as you before it runs out.1

Passkeys and security keys are the strongest. A passkey is made for one particular site's account, and there's no code or secret for you to type, so a fake login page has nothing to collect. Apple and CISA both call them phishing-resistant.61 A security key is a small device, like a USB stick or a tag, that you use when you sign in.7 On a Google Account with 2-step verification on, signing in with a passkey counts as both steps, so it doesn't ask you for a code as well.8

It might be called 2-step verification, two-factor authentication or MFA in the account's security settings. Pick a passkey or a security key if it's offered, an app if not, and texts if that's the only choice. 2fa.directory lists which sites support 2FA, so you can check before you go hunting.9

When you add a passkey to a Google Account, your other ways of signing in and getting back in stay as they were.8 Leave them alone until you've signed in with the passkey on each device you use.

After the first time, you're usually only asked for the second step on a new device or when you change something important, like your password.3

When someone tries to get past it

A prompt you didn't start may well mean someone has your password and is trying to log in. Say no, then change that password. Uber's attacker got in when the contractor finally accepted one.4

Scammers also ring people pretending to be their mobile network, get details out of them, and then pretend to be them to the network.10 Whoever contacted you, don't read out or type in a code for them. Vodafone says a code meant for using online should never be given over the phone,10 and Google says it never asks for a backup code anywhere except its own sign-in page.11

Where to turn it on first

Do your email first

essential10 min

Criminals who get into your email can use it to reset the passwords on your other accounts.3 It can also be how someone takes over your phone number. In one case Which? looked into, criminals got into a man's email, used it to reset the password on his Vodafone account, and then used that to move his number to another network.9

The NCSC's list of important accounts is email, banking, social media and online shopping.12 After your email, this is the order we'd go in:

  1. Your password manager, if you use one, since it holds your other passwords. The password manager guide covers it.
  2. Your mobile network account, since it controls where your texts go (see the next tip).
  3. Your bank.
  4. The Apple, Google or Microsoft account that your phone or computer signs in to.
  5. Shops that have your card saved.
  6. Social media, where someone could message your friends as you.

Keep your phone number yours

While someone else has your number, your text codes go to them, and getting it back can take a while. One Vodafone customer waited ten days, and the scammers used the codes her bank and her email provider sent in the meantime.9

In the UK

Give your mobile network's online account a strong password and turn on its own 2-step verification. Then ask the network whether it can add an extra PIN or password for big changes like a new SIM. Which? found that most SIM swaps are now done online rather than in shops or over the phone.9

In the US

FCC rules make every mobile provider offer a free lock that stops anyone changing your SIM, and tell you straight away when someone asks to move your number to another provider. Both have to be in place by 18 December 2026, so ask yours for the lock and turn it on.1314

Old numbers get given to new people. In the US, about 35 million numbers are disconnected every year and passed on, and when Princeton researchers took 200 recycled numbers for a week, 19 were still getting the old owners' sensitive messages, like login codes.15 Before you give a number up, switch each account to the new one, or better, onto an app.

Some accounts let you reset the password with just a code texted to you, so whoever has your number gets past the password and the 2FA together. The same researchers checked 259 numbers that were free for anyone to pick, and 171 of them could have been used to take over an account through account recovery at Amazon, Facebook, Google, PayPal or Yahoo.15

Look at the recovery options on your most important accounts. If a text can get you back in and the account lets you remove your number, you can, but it's one fewer way back in for you too. Save a fresh set of backup codes first. Then, staying signed in where you are, open a private window or another device and check that another way back in actually works. Only remove the number once it has. A security question isn't a good enough alternative on its own, since the NCSC says they don't give the same protection.3

Don't lock yourself out

When an account gives you backup codes, each one works once, and they get you in when your phone doesn't.3 Google suggests printing its codes and keeping them wherever you keep your passport. Making a new set stops the old ones working, so throw the old printout away.11

Don't keep them in the same password manager as the password, or anyone who gets into the vault has both (the 2FA glossary entry has more on that).

Apple won't let you turn on security keys for an Apple Account without at least two, and warns that losing all of them, along with your trusted devices, could lock you out for good.7 Where an account lets you add more than one key, add the spare too, and keep it somewhere other than your keyring.

Picking an authenticator app

Pick one that can get your codes onto a new phone. If an app only keeps them on the phone you've got, losing that phone can mean using backup codes and setting up 2FA again on every account. The apps below back up or sync your codes, so they can come with you to a new phone.

Free, secure and open source authenticator app for both iOS and Android. Supports creating encrypted backups and syncing between devices without the need for an account.

2fas.com
  • open source
  • ToS;DR C

Last commit: May 2026

440 stars on GitHub

Android · iOS

Free, secure and open source authenticator app for Android. Has a backup/ restore feature and a customisable UI with dark mode

getaegis.app
  • open source
  • ToS;DR A

Last commit: Nov 2026

13.7K stars on GitHub

Android

Free and open-source two factor authentication app for Android. It features encrypted backups, icons, categories and a high level of customisation. It also has a Wear OS companion app

stratumauth.com
  • open source

Last commit: Nov 2026

4.7K stars on GitHub

Android

Free, open source TOTP authenticator for mobile, desktop and web. Works fully offline, or with an Ente account to sync codes across devices with end-to-end encrypted backups. Codes can be imported from, and exported to, other apps.

ente.com
  • open source
  • audited
  • ToS;DR C

Last commit: Dec 2026

30.8K stars on GitHub

Android · iOS

Bitwarden Authenticator is a free and open-source app which stores and generates time-based codes for multi-factor authentication. It can be used with an online account to backup and sync your tokens across your devices (and access them via a web interface) in a secure, end-to-end encrypted fashion. It can also be used offline on a single device with no account necessary.

bitwarden.com
  • open source
  • ToS;DR C

Last commit: Dec 2026

749 stars on GitHub

Android · iOS

Chronos Authenticator is a free, open-source two-factor authentication app for iOS, designed to provide robust security and reliable backup options.

chronosauth.com
  • open source

Last commit: Sep 2026

39 stars on GitHub

iOS

Open-source 2FA authenticator for iPhone, iPad, Mac and Apple Watch. Secrets stay in the device Keychain, with no account, no analytics and optional iCloud Sync

autheris.app
  • open source

Last commit: Oct 2026

2 stars on GitHub

iOS

From the 2-Factor Authentication picks on Awesome Privacy

Authy can't export your codes, so moving to another app means setting up 2FA again on each account with the new app.16 Its desktop apps were due to stop working in March 2024, so plan to do this on your phone.16

  1. Sign in to an account, open its 2FA settings and set up an authenticator app again, this time with your new app. You might have to turn 2FA off and back on to do it, so do that in one go.
  2. Type in the code from the new app when the site asks, and save any new backup codes, since the old ones may stop working.
  3. Staying signed in, open a private window, sign in again with the new app's code, and only then delete that account from Authy.

Google Authenticator moves codes with QR codes. In the app, tap Menu → Transfer codes → Export codes, pick the accounts, and scan every QR code it shows (there may be more than one) with your new app's import option.17 Ente Auth, for one, can import them.18 A phone can't scan its own screen, so if both apps are on the same phone, check the new app's import help first. Those QR codes hold everything needed to make your codes, so don't take a screenshot of them.

Keep the old app until you've checked each code in the new one.18 If your codes were synced to your Google Account, deleting one in the app deletes it from every device it was synced to.17

checklist

Every tip on this page in one place, so you can tick them off as you go.

essential

  • #5 min
  • #1 min
  • #10 min
  • #30 min
  • #10 min
  • #5 min

optional

  • #20 min
  • #10 min
  • #30 min
  • #10 min

advanced

  • #15 min

go further

sources

  1. CISA: Implementing phishing-resistant MFA ↩ ↩2 ↩3 ↩4 ↩5

  2. Cifas: 1,055% surge in unauthorised SIM swaps ↩

  3. NCSC: Setting up 2-Step Verification ↩ ↩2 ↩3 ↩4 ↩5

  4. Uber: Security update ↩ ↩2

  5. Microsoft Learn: Number matching in Authenticator push notifications ↩

  6. Apple Support: About the security of passkeys ↩

  7. Apple Support: About Security Keys for Apple Account ↩ ↩2

  8. Google Account Help: Sign in with a passkey instead of a password ↩ ↩2

  9. Which?: How weak security checks leave the door unlocked for sim-swap scammers ↩ ↩2 ↩3 ↩4

  10. Vodafone UK: How to protect yourself from SIM swap fraud ↩ ↩2

  11. Google Account Help: Sign in with backup codes ↩ ↩2

  12. NCSC: Turn on 2-step verification ↩

  13. Federal Register: Protecting consumers from SIM-swap and port-out fraud, compliance dates for SIM changes ↩

  14. Federal Register: Protecting consumers from SIM-swap and port-out fraud, compliance dates for number transfers ↩

  15. Princeton University: Security and privacy risks of number recycling at mobile carriers ↩ ↩2

  16. The Register: Twilio reminds users that Authy Desktop apps die in March ↩ ↩2

  17. Google Account Help: Get verification codes with Google Authenticator ↩ ↩2

  18. Ente Help: Migrating from other providers ↩ ↩2

terms in this guide