Two-Factor Authentication (2FA)

Two-factor authentication (2FA) is a login security method that requires two different kinds of proof of identity, such as a password plus a one-time code or a physical security key, before access to an account is granted.

Authentication factors fall into three categories: something you know (a password or PIN), something you have (a phone or hardware security key) and something you are (a fingerprint or face). 2FA requires any two of these three categories, not all three. In crypto, the most common pairing is a password plus a code from an authenticator app. These apps usually generate time-based one-time passwords (TOTP), defined in RFC 6238. The app and the service share a secret seed and each calculate the same short code, which typically changes every 30 seconds.

This matters because exchange accounts often hold real funds, and crypto transactions generally cannot be reversed. A stolen password alone could otherwise let an attacker withdraw assets permanently. For this reason, many exchanges require or strongly encourage 2FA for logins and withdrawals.

For example, someone logging in to a centralized exchange enters their password, then opens an authenticator app and types the six-digit code it shows. If their password had leaked in a data breach, an attacker would still be blocked without access to the phone.

Not all 2FA is equally strong. Codes sent by SMS can be intercepted through a SIM swap, and fake login pages can trick users into typing a valid code. Hardware security keys resist phishing better. 2FA also protects accounts, not a self-custody wallet's seed phrase. Losing the phone without saved backup codes can lock the owner out, so those codes should be stored securely.

Learn more

Related terms