Which 2FA is safest, and where to turn it on first
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
Where to turn it on first
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:
- Your password manager, if you use one, since it holds your other passwords. The password manager guide covers it.
- Your mobile network account, since it controls where your texts go (see the next tip).
- Your bank.
- The Apple, Google or Microsoft account that your phone or computer signs in to.
- Shops that have your card saved.
- 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
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.
Free, secure and open source authenticator app for Android. Has a backup/ restore feature and a customisable UI with dark mode
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
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.
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.
Chronos Authenticator is a free, open-source two-factor authentication app for iOS, designed to provide robust security and reliable backup options.
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
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
- 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.
- 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.
- 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