Two-factor authentication (2FA) requires two separate proofs of identity before granting access to an account. The idea is simple: even if an attacker obtains your password, they cannot log in without the second factor.
The three categories of authentication factors are:
Standard login uses only the first factor (your password). Two-factor authentication adds the second. For most online services, this means entering your password and then providing a temporary code from your phone or tapping a hardware security key.
This layered approach means an attacker needs to compromise two independent systems to access your account. Stealing a password from a data breach is common. Stealing a password and gaining physical access to your phone or hardware key is dramatically harder.
Not all 2FA methods offer the same level of protection. Here they are, ranked from least to most secure.
Your phone receives a text message with a 6-digit code after you enter your password. This is the most widely available method and better than no 2FA at all, but it has significant weaknesses:
SMS 2FA blocks automated credential stuffing attacks, which makes it worthwhile if it is your only option. But upgrade to an authenticator app when possible.
Apps like Google Authenticator, Authy, and 1Password generate time-based one-time passwords (TOTP). The app and the service share a secret key during setup. Every 30 seconds, the app generates a new 6-digit code derived from that key and the current time.
Advantages over SMS:
Setup is straightforward: The service shows you a QR code. You scan it with your authenticator app. Done. From that point forward, your login requires your password plus the current code from the app.
Physical devices like YubiKey and Google Titan use the FIDO2/WebAuthn protocol. You plug the key into a USB port (or tap it via NFC) to complete authentication.
Advantages over TOTP:
Disadvantages: You need to purchase the key (typically $25-50), and you should have two -- one as a backup in case you lose the primary. Not all services support hardware keys yet, though coverage has expanded significantly.
Passkeys are the newest evolution, built on the same FIDO2 standard as hardware keys but stored on your device or in your password manager. They combine the phishing resistance of hardware keys with the convenience of biometric authentication.
Passkeys are not traditional 2FA -- they replace the password entirely. However, they effectively provide two-factor security because they require both possession of the device and a biometric or PIN to use.
Adoption is growing but not universal. For services that do not support passkeys, strong passwords with TOTP remain the best approach.
A strong, random 20-character password is essentially uncrackable by brute force. So why bother with 2FA?
Because brute force is not the only threat.
Think of it this way: a strong password protects you from attacks on the password itself. 2FA protects you from everything that bypasses the password.
The process is similar across most platforms. Here is the general approach:
Service-specific notes:
The biggest risk with 2FA is locking yourself out. Plan ahead:
Two-factor authentication is the highest-impact security improvement you can make after using strong, unique passwords. An authenticator app provides excellent protection for most people. Hardware security keys add phishing resistance for high-value accounts. Start by generating a strong password with our password generator, then immediately enable 2FA on every account that supports it. The few seconds it adds to each login are worth the significant reduction in risk.
Need a strong password?
Generate One Free