Modern Security•7 min read•
What are 2FA and Passkeys? Guide to Passwordless Security
Comprehensive breakdown of two-factor authentication tiers (SMS, TOTP, FIDO2), public-key WebAuthn passkeys and which method to choose.
The Layers of Two-Factor Authentication (2FA)
Authentication is built on three basic factors:
- Something you know: a password or PIN
- Something you have: a smartphone or a hardware security key (such as a YubiKey)
- Something you are: a fingerprint or face recognition (biometrics)
2FA requires at least two of these factors together. Not every 2FA method offers the same level of protection, however:
- SMS codes (weakest): SIM swap fraud and weaknesses in the SS7 telecom network let attackers redirect SMS codes.
- TOTP apps (Google Authenticator, Aegis): The RFC 6238 standard generates 6-digit codes that change every 30 seconds. Much safer than SMS, but a code typed into a phishing site can still be relayed in real time.
- FIDO2 / U2F hardware keys (strongest): These use a cryptographic challenge-response protocol bound to the website's domain. Because a phishing site cannot present the real domain, the key will not sign in to it, which makes them highly resistant to phishing.
What is a Passkey?
A passkey is a sign-in credential based on the WebAuthn standard developed by the FIDO Alliance and the W3C, with the goal of replacing passwords entirely.
With a traditional password, the shared secret (your password) exists both with you and on the server; when the server is breached, the password leaks. With passkeys:
- Private key: stored in your device's secure hardware (TPM / Apple Secure Enclave) or an end-to-end encrypted passkey manager, and never sent to the website.
- Public key: registered with the server.
- When you sign in, the server sends a random challenge; your device signs it after you approve with your fingerprint, face or device PIN, and the server verifies the signature.
- If the server is breached, attackers obtain only public keys, which cannot be used to sign in to your account.
Which Method Should You Choose?
- Use passkeys wherever they are offered: They are both more convenient and more secure than a password plus code.
- Otherwise use a TOTP app or a hardware key: Avoid SMS where you have a choice, especially for email and banking.
- Save your recovery codes: Store backup codes in your password manager or print them and keep them somewhere safe, so losing your phone does not lock you out.
- Keep a strong password anyway: Many accounts still fall back to a password, so make it long, random and unique.
Generate Strong Credentials Instantly
Hardware-backed Web Crypto API with zero logging and zero server contact.