Two-Factor Authentication (2FA)
Two-factor authentication (2FA) is a security method that requires two different types of proof to verify your identity before granting access to an account or service.
Zelf Core Team
What Is Two-Factor Authentication?
Two-factor authentication adds another layer of protection to the sign-in process. Instead of relying on a password alone, it requires a second type of evidence that you are authorized to access the account.
Authentication factors fall into three main categories:
Something you know: A password or PIN.
Something you have: An authenticator app, security key, or registered device.
Something you are: A biometric characteristic, such as your fingerprint or face.
2FA combines two different categories. For example, entering a password and then providing a code from an authenticator app combines something you know with something you have.NIST: Multi-Factor Authentication
Entering a password followed by a security question does not provide two different factors: both answers are something you know. This distinction separates two factors from simply completing two steps.
2FA is a form of multi-factor authentication (MFA). While 2FA specifically uses two factors, MFA is the broader term for authentication using two or more.
How Does Two-Factor Authentication Work?
When you enable 2FA, you register an additional authentication method with a service. Depending on the options available, this might involve linking an authenticator app, registering a security key, or setting up a phone number.
A typical sign-in using a password and authenticator app follows three steps:
Enter your password. The service checks the first factor.
Provide an authentication code. You open your authenticator app and enter the temporary code displayed for that account.
Receive access. The service verifies the code and grants access if both checks succeed.
Many authenticator apps generate time-based one-time passwords, or TOTP codes. During setup, the app and the service establish a shared secret, often through a QR code. They use that secret and the current time to calculate matching codes, usually changing every 30 seconds. The app can generate these codes without an internet connection.
Other methods work differently. A security key uses cryptography to prove possession, while SMS verification sends a code to a registered phone number. Some passkeys combine possession of a cryptographic credential with a device PIN or biometric check, allowing two factors within a single sign-in experience. The number of visible steps does not determine the number of factors.NIST: Authentication and Authenticator Management
Why Does Two-Factor Authentication Matter?
Passwords can be stolen through phishing, exposed in data breaches, or guessed when they are weak or reused. With properly implemented 2FA, knowing the password alone is insufficient to sign in.
This extra protection is valuable for email, password managers, workplace systems, financial services, and cryptocurrency exchanges. Protecting your email is particularly important because it often receives password-reset messages for other accounts.
However, different 2FA methods provide different levels of protection. SMS codes can be vulnerable to SIM-swapping attacks, and attackers can trick users into entering authenticator codes on fraudulent websites. FIDO-based security keys and properly implemented passkeys provide phishing resistance by tying authentication to the legitimate service.NIST: Authentication Security Requirements
Recovery also matters. Store recovery codes securely and understand how to regain access if your phone or security key is lost. For authenticator apps, protect the underlying setup secret as carefully as a password: someone who obtains it may be able to generate matching codes.
In crypto, remember that 2FA protects the account or operation where it is enforced. Enabling it on an exchange account does not protect a separate self-custody wallet if that wallet’s private key or recovery phrase is compromised.
Zelf Academy also explains how two-factor authentication differs from two-step verification.