Passwords alone are no longer enough. They get reused, guessed, leaked in data breaches and handed over to convincing fake login pages. Two-factor authentication, often shortened to 2FA, adds a second check so that a stolen password by itself isn’t enough to break into your account.
But not all 2FA is equal. Some methods are much stronger than others, and the most common one, text message codes, is now considered the weakest. Here’s how the options compare and how to set up protection that actually works.
What Two-Factor Authentication Means
Authentication proves you are who you say you are. It can rely on three kinds of evidence:
- Something you know: a password or PIN.
- Something you have: your phone, a security key or a code generator.
- Something you are: a fingerprint or face scan.
Two-factor authentication combines two different kinds. You may also see it called multi-factor authentication (MFA) or two-step verification. The idea is that an attacker who has one factor still lacks the other.
The Main Methods, From Strongest to Weakest
The US Cybersecurity and Infrastructure Security Agency (CISA) has published a ranking of authentication methods based on how well they resist common attacks. Here’s a plain-language version.
1. Passkeys and security keys (strongest)
Passkeys replace passwords with cryptographic keys stored on your device and unlocked with your fingerprint, face or device PIN. Security keys are small physical devices you plug in or tap, such as those that follow the FIDO standard. Both use FIDO/WebAuthn technology, which CISA calls the only widely available phishing-resistant authentication. They work only on the genuine website, so a fake login page can’t trick you into handing over a usable code.
Passkeys are now supported by Apple, Google, Microsoft and a growing number of websites and apps.
2. Authenticator apps
Apps such as Google Authenticator, Microsoft Authenticator and many password managers generate a six-digit code that changes every 30 seconds. They’re much better than text messages because the codes are created on your device and can’t be intercepted through your phone number. Their weakness is that a skilled attacker can still trick you into typing a code into a fake website.
Some apps use push notifications instead, asking you to tap “Approve.” Those work best when they use number matching, where you enter a number shown on the login screen, which stops accidental approvals.
3. SMS and voice codes (weakest)
A code sent by text message is better than nothing, and any second factor is better than a password alone. But CISA lists SMS and voice codes at the bottom, describing them as vulnerable to phishing, to flaws in the phone network known as SS7 and to SIM swapping. In December 2024, US agencies advised that highly targeted people should not use SMS as a second factor.
Common Attacks and How They Work
- Phishing: a fake website imitates a real login page and asks for your password and your code. Some attackers relay what you type to the real site in real time.
- SIM swapping: a criminal persuades your mobile carrier to move your phone number to a SIM card they control, letting them receive your text codes.
- Push bombing or MFA fatigue: attackers who have your password trigger a stream of approval requests, hoping you’ll tap “Approve” to make them stop.
- Malware and stolen sessions: software on your device can capture codes or steal logged-in sessions.
How to Set Up 2FA Sensibly
Step 1: Start with the accounts that matter most
Prioritize:
- Your main email accounts. If someone controls your email, they can reset passwords everywhere else.
- Your password manager.
- Banking and payment accounts.
- Your phone and cloud accounts, such as Apple, Google and Microsoft.
- Social media and shopping accounts.
Step 2: Choose the strongest option each service offers
In the security settings, look for “passkeys,” “security key,” “authenticator app” or “two-step verification.” Pick in this order: passkey or security key, then authenticator app, then text message only if nothing else is available.
Step 3: Save your backup codes
Most services give you one-time recovery codes when you enable 2FA. Store them somewhere safe and separate, such as in a password manager or printed in a secure place. They’re your lifeline if you lose your phone.
Step 4: Add a second method
Register more than one way to sign in, such as two security keys or a passkey plus an authenticator app. That way, losing one device doesn’t lock you out.
Step 5: Protect your phone number
If you still rely on SMS anywhere, ask your carrier about SIM protection or a number lock, and set a PIN on your mobile account. Remove your phone number as a recovery option once you’ve set up stronger methods, if the service allows.
Step 6: Plan for a new phone
Before switching or wiping a phone, transfer your authenticator app accounts or make sure your passkeys sync to your new device. Many apps now offer encrypted backup or transfer.
Everyday Habits That Make 2FA Work
- Never approve a prompt you didn’t start. If you get an unexpected request, deny it and change your password.
- Never share your codes. A real company will not ask you to read out a code over the phone or in a message.
- Type addresses yourself or use bookmarks for important sites instead of clicking links in messages.
- Use a password manager, which can also warn you when a site’s address doesn’t match, a good protection against fake pages.
- Keep your devices updated and use a screen lock.
- Watch for security alerts from your accounts and act on them quickly.
Helping Family Members
Older relatives and less technical friends are often targeted. Help them enable 2FA on their email and bank accounts, show them how to spot suspicious prompts and set up recovery options. A passkey with a fingerprint or face unlock is often easier for them than typing codes.
Security Keys: Are They Worth It?
A physical key costs money, and you need to keep it safe, but it provides the strongest protection against phishing. It’s especially worthwhile for journalists, activists, business owners, administrators and anyone with valuable or sensitive accounts. If you buy one, buy two, and keep the spare in a safe place.
Common Mistakes
- Relying only on text messages when better options exist
- Skipping backup codes and getting locked out
- Using the same phone number for everything without carrier protection
- Approving unexpected push notifications
- Storing codes and passwords in the same unprotected place
- Ignoring email security, the master key to other accounts
Frequently Asked Questions
Is SMS 2FA still worth using?
Yes, if it’s the only option. It stops many automated attacks. But upgrade to an authenticator app, passkey or security key when you can.
What happens if I lose my phone?
Use your backup codes, a second registered method or the account recovery process. This is why preparing in advance matters.
Are passkeys safer than passwords?
Generally yes. They can’t be guessed, reused or handed over to a fake site. They do rely on the security of your device and account recovery options.
Does 2FA make accounts unhackable?
No. It greatly reduces risk, but attackers can still target accounts through phishing, malware and recovery processes. Combine 2FA with good habits.
Conclusion
You don’t need to secure everything at once. This week, enable the strongest available second factor on your main email account, save the backup codes and add a second method. That single step protects the account most other accounts depend on.
This article offers general security information. Features and recommendations change over time, so check current guidance from your service providers and national cybersecurity agencies.