Security · · 5 min read
Two-factor authentication (2FA): which method is safest?
Two-factor authentication (2FA) means that, on top of your password, a second piece of proof is required to log in to an account. Even if your password leaks in a data breach or is captured by a fake website, 2FA makes it much harder for an attacker to get in, but not every method is equally strong.
This extra layer matters especially for crypto accounts. An attacker who gets into an exchange account can withdraw the balance within minutes, and blockchain transfers cannot be reversed.
How does two-factor authentication work?
Authentication relies on three kinds of proof:
- Something you know: A password or PIN.
- Something you have: Your phone, an authenticator app or a hardware security key.
- Something you are: Biometrics such as a fingerprint or face recognition.
2FA combines two of these. Knowing your password is not enough for an attacker; they also need access to the second proof.
One of the most common methods is time-based one-time passwords (TOTP) generated by authenticator apps. During setup, the website and the app share a secret key, usually through a QR code. The app combines this key with the current time to generate a 6-digit code that typically changes every 30 seconds. The website does the same calculation on its side and lets you in if the codes match. The code is generated even without an internet connection; the phone's clock just needs to be accurate.
Methods and how strong they are
| Method | How it works | Main weakness |
|---|---|---|
| SMS code | A code is sent to your phone number | Number takeover (SIM swap), interception of messages, phishing |
| Email code | A code is sent to your email address | Only as secure as the email account |
| Authenticator app (TOTP) | 30-second codes are generated on the phone | A code typed into a fake site can be used by the attacker right away |
| Push approval | A "Is this you signing in?" prompt appears on the phone | Careless approval of repeated prompts |
| Hardware key and passkey | Cryptographic signature tied to the site's domain | A backup is needed if the key is lost |
SMS is better than no 2FA at all, but it is among the weakest options. If an attacker tricks your carrier into moving your number to their own SIM card (a SIM swap attack), your codes go to them.
An authenticator app removes that risk, because the code is tied to a secret key on your device rather than to your phone number. But if you type the code into a fake site yourself, the attacker can use it on the real site within seconds.
Hardware security keys and passkeys are based on standards called FIDO2 and WebAuthn, and they close this gap. The browser asks the key for a signature only for the domain of the site that is actually open; a signature produced for a fake domain is useless on the real site. That is why they are considered the most phishing-resistant method.
Where 2FA kicks in on crypto accounts
Exchanges usually require 2FA not only at login but also for risky actions:
- Withdrawals and adding a new withdrawal address
- Creating API keys
- Changing your password, email or 2FA method
Most exchanges also offer extra protections. A withdrawal address whitelist allows funds to be withdrawn only to pre-approved addresses. An anti-phishing code makes a phrase you choose appear in genuine emails from the exchange. Many exchanges also restrict withdrawals for a while after security settings are changed.
The link people often forget is the email account. Password reset links usually go to email, so if someone takes over your email, your exchange account is at risk too. That is why it makes sense to start setting up 2FA with your email account.
What 2FA does not protect against
- Handing over the code yourself: If someone claiming to be "support" or "the security team" asks for the code, 2FA is useless. A legitimate company will never ask for your 2FA code.
- Session theft: Malware on your computer can steal the session data your browser stores after you log in. The attacker can then get into an open session without ever facing the 2FA step.
- Your own wallet: The security of a wallet whose keys you hold yourself depends on the recovery phrase, the list of words that can restore the wallet. Anyone who knows that phrase can access the wallet without any 2FA.
- Careless approvals: If you approve a malicious transaction or contract yourself, the second factor will not stop it.
A checklist for setup and backup
- Turn on 2FA for your email account first, then for your exchange and other financial accounts.
- Where available, use an authenticator app or hardware key instead of SMS, and if possible remove your phone number as a recovery method.
- Write down the backup codes you get during setup on paper and store them somewhere safe, separate from your password.
- If you use a hardware key, register a second key as a backup.
- Before switching phones, move the accounts in your authenticator app to the new device, and reset the old device only after that.
- Check open sessions and registered devices on your account's security page at regular intervals.
Key takeaways
- 2FA requires you to prove your identity with something you have, on top of your password, so a leaked password alone is not enough.
- SMS is among the weakest methods, authenticator apps are stronger, and hardware keys and passkeys are the most phishing-resistant options.
- On crypto accounts, 2FA should also apply to withdrawals, API keys and changes to security settings.
- 2FA does not stop you from sharing a code, does not prevent session theft and does not protect a recovery phrase.
- Preparing backup codes and a second key in advance makes it possible to recover the account if a device is lost.