Skip to content
ChimPass

Two-factor authentication explained

Last updated

Two-factor authentication (2FA), also called two-step verification, means logging in needs two separate proofs that it's you: usually your password plus something only you have, such as a code from your phone, a tap on an app, a physical security key, or a passkey on your device. If your password is stolen, the attacker still can't get in without that second factor. It's one of the most effective protections for your accounts, and takes minutes to set up. Any form of 2FA is much better than none, but some forms resist scams better than others.

Why a password alone isn't enough

Passwords leak. Websites get breached, people reuse passwords, and scam pages trick people into typing them in. Once a password is out, anyone can use it from anywhere in the world.

A second factor changes that. The attacker now needs something physical that you have, or that's tied to your device, and that's much harder to steal at scale. The UK's NCSC recommends turning it on, starting with your email: see activate 2-step verification on your email.

The types of second factor

Text message (SMS) codes

The site texts a short code to your phone, and you type it in.

  • Good: works on any phone, easy to set up, much better than a password alone.
  • Weaker points: a criminal can sometimes trick a mobile provider into moving your number to their SIM card (a "SIM swap"), and codes can be phished: a fake login page can ask for the code and pass it on in real time.

NIST currently classes text message codes as a "restricted" option because of these weaknesses, in its digital identity guidelines. They're still worth using if nothing better is offered.

Authenticator app codes

An app on your phone shows a six-digit code that changes every 30 seconds. You scan a QR code once to link it to the account.

  • Good: no dependence on your phone number, works offline, free.
  • Weaker points: codes can still be phished by a convincing fake site, and you need a plan for when you change or lose your phone. Most authenticator apps can now back up to a cloud account or let you transfer codes; set that up.

Push notifications

You get a prompt on your phone asking "Is this you trying to sign in?" and you tap Yes or No.

  • Good: quick and easy.
  • Weaker points: attackers sometimes send dozens of prompts hoping you'll tap Yes to make them stop. Never approve a login you didn't start. Many services now show a number on screen that you must match in the app, which helps.

Security keys

A small physical device that plugs into USB or taps against your phone. You touch it to log in.

  • Good: very resistant to phishing, because the key checks the website's real address before responding. A fake site gets nothing useful.
  • Weaker points: costs money, and you need a backup key in case you lose the first.

Passkeys

A passkey replaces the password with a cryptographic key stored on your phone, computer or password manager. You unlock it with your fingerprint, face or device PIN.

  • Good: resistant to phishing in the same way as security keys, nothing to remember or type, and nothing reusable to leak. Many big services support them.
  • Weaker points: still being rolled out, and moving between different device ecosystems can be fiddly. Most password managers can now store and sync passkeys.

Strictly, a passkey isn't "password plus second factor": it combines something you have (the device) with something you are or know (fingerprint or PIN) in one step. The FIDO Alliance explains how they work.

Which should you choose?

In order of preference, use the best option each account offers:

  1. Passkey or security key
  2. Authenticator app or a push notification with number matching
  3. Text message codes

But don't let perfect be the enemy of good. Turning on text message codes today beats waiting to set up a security key next month.

Where to turn it on first

  1. Email, because it can reset everything else
  2. Password manager, if you use one
  3. Banking and payment apps (many UK banks already require a second step for payments)
  4. Your mobile phone account, to make SIM swaps harder
  5. Social media and messaging, which scammers use to target your contacts
  6. Shopping accounts with saved cards

Look in each account's settings under "Security", "Sign-in" or "Login".

Backup codes: don't skip this

When you turn on 2FA, most services offer backup codes: a list of one-time codes you can use if you lose your phone. Save them somewhere safe, such as your password manager or printed and kept at home. Without them, losing your phone can lock you out for days.

Also add a second method where you can, such as a second security key or a backup phone number.

Common worries

"What if I lose my phone?" That's what backup codes and secondary methods are for. With those in place, losing a phone is an inconvenience, not a disaster.

"Isn't it a hassle every time?" Most services remember trusted devices, so you'll only be asked on new devices or occasionally. Passkeys make logging in faster than typing a password.

"I have a strong password, isn't that enough?" A strong password stops guessing. It doesn't stop phishing, malware or a breach at a site that stored it badly. 2FA covers those cases.

How 2FA fits with good passwords

2FA works best alongside, not instead of, good passwords:

  • a strong, unique password for every account, ideally managed by a password manager
  • 2FA on every important account
  • a habit of going to sites directly rather than through links in messages

If you're getting started, password security for beginners puts these steps in order. If you've had a password exposed, see how often should you change your password? for what to do next.

More questions? The password FAQ has short answers, or browse all guides.