Two-Factor Authentication (2FA): The Complete Beginner's Guide
Enable 2FA on every account you care about. This guide explains how authenticator apps, SMS codes, and hardware keys work โ and which is safest.
Two-factor authentication (2FA) is the single most effective thing most people can do to secure their accounts. Even if your password is stolen, 2FA prevents unauthorized access. Here's how each method works and which is the safest.
How 2FA Works
Authentication factors fall into three categories:
- Something you know: Password, PIN
- Something you have: Phone, hardware key, smart card
- Something you are: Fingerprint, face, iris
2FA requires at least two of these. Most 2FA combines a password (know) with a phone-based code (have).
SMS 2FA: Convenient but Weakest
A one-time code is sent to your phone via SMS. This is the most widely supported and easiest to set up, but it has significant weaknesses:
- SIM swapping: Attackers can convince your carrier to transfer your number to their SIM
- SS7 attacks: Sophisticated attackers can intercept SMS messages
- SMS phishing: Fake "your code is" messages to hijack sessions
Authenticator Apps: The Sweet Spot
Apps like Google Authenticator, Authy, and Microsoft Authenticator generate time-based one-time passwords (TOTP) that change every 30 seconds. They work offline and are immune to SIM swapping because codes never travel over a phone network. This is the recommended 2FA method for most people.
Hardware Security Keys: Maximum Security
Physical keys like YubiKey or Google Titan plug into USB-A/C or use NFC. They are phishing-proof โ the key cryptographically verifies the website's domain before signing. Even if you're on a perfect phishing replica, the key won't authenticate. Recommended for: journalists, activists, anyone at high risk.
Setting Up 2FA: Priority Order
- Email account (most important โ it controls password resets for everything else)
- Bank and financial accounts
- Social media accounts
- Any work-related accounts
- Everything else with sensitive personal data