← GlossarySecurity
What Is Two-Factor Authentication (2FA)? Which Types Are Safest
Two-factor authentication (2FA) requires two different kinds of proof to sign in, such as something you know and something you have, so a stolen password alone is not enough to take over an account.
Key takeaways
- The factors are something you know, something you have and something you are.
- NIST treats SMS codes sent over the phone network as a restricted authenticator.
- Authenticator apps and security keys are stronger than text messages.
- 2FA protects accounts such as exchanges; it does not replace protecting a wallet's private key.
The idea
A password is one factor: something you know. Two-factor authentication adds a second, different kind of proof, usually something you have, such as a phone or a security key, or something you are, such as a fingerprint. An attacker who steals your password still cannot sign in without the second factor. NIST's authentication guidance defines multi-factor authenticators as ones that require two factors to complete a single authentication event.
The common types
A text message with a code is the best known, but it is also the weakest. NIST's guidance marks out-of-band verification over the public telephone network as restricted, because phone numbers can be hijacked or intercepted, and it notes that the status may change as threats evolve. Authenticator apps generate codes on your device and avoid the phone network. Hardware security keys go further by cryptographically tying a login to the real website.
Phishing is the weak spot
Codes you type in by hand can still be stolen. NIST says that manually entered authenticator output, such as one-time codes, is not verifier-impersonation resistant, meaning a fake site can collect the code and use it immediately. Authenticators that bind to the site's identity, such as security keys and passkeys, resist this.
Where it fits for crypto
Use strong 2FA on exchange accounts, email and anything that can reset them. But 2FA does nothing for a self-custody wallet's private key: whoever holds the key controls the coins, with no login to protect. For wallets, protect the device, back up your recovery data offline and never type it into a website. Turn on the strongest factor each service offers, and keep recovery codes somewhere offline.
Example
You log in to an exchange with your password and the six-digit code from an authenticator app. A scammer who obtained your password from a leaked database cannot complete the login because they lack the code generated on your phone.
Put it into practice
Protect sending, not just logging in
Scrypt Wallet supports passkeys and a PIN to protect sending. Set them up so a stolen phone or password is not enough to move your coins.
Create a free wallet Get Scrypt for AndroidSources and verification
Last reviewed 2026-10-02 by the Scrypt Wallet team. The factual claims on this page, and where each comes from:
- NIST defines a multi-factor authenticator as one that requires two factors to complete a single authentication event. [1]
- NIST states that use of the public switched telephone network for out-of-band verification is RESTRICTED. [1]
- NIST states that manual entry of authenticator output, such as OTPs, is not verifier-impersonation resistant. [1]
Sources
- NIST SP 800-63B: Digital identity guidelines, authentication · NIST · primary source
- Two-factor authentication · Wikipedia · secondary source
Primary sources are protocol papers, specifications, source code or a project's own documentation; secondary sources are wikis and explainers. We checked each claim against the source text on the review date. Found an error? Tell us and we will correct it.
Frequently asked questions
Is SMS 2FA better than nothing?
Yes, but it is the weakest common option. Use an authenticator app or a security key if the service offers one.
Does 2FA protect my crypto wallet?
Not the private key itself. It protects accounts with logins, such as exchanges and email.
What if I lose my second factor?
Keep recovery codes offline and set up a backup method before you need it.
Written by the Scrypt Wallet team · Updated 2026-10-02. General education, not financial, tax or legal advice.