Skip to content
Sign in to follow Software & Apps
// software & apps

What is two-factor authentication (2FA) and which method is the most secure?

Shri Editor-verified · AI-drafted published 27 Oct 2026 2 min 15 sources

Two-factor authentication (2FA) means proving who you are with two kinds of evidence: your password plus something you have, like a phone or small key, or something you are, like a fingerprint.1 The most effective method is a FIDO security key, and a FIDO passkey is an acceptable alternative;2 the two overlap, since a passkey can be stored on a security key.3 Both resist phishing, the fake login pages that defeat text and app codes.4

A passkey also replaces your password,5 and when it checks your fingerprint, face or PIN, that plus the device counts as two factors.6

Sign-in methods compared
MethodHow you prove it's youWeak pointVerdict
Text-message codeA code is texted to your phoneFake login pages, intercepted texts, or someone taking over your phone number7Last resort, better than nothing8
Authenticator appYour phone generates a code, no signal needed9A fake site can ask for the code4Better than text codes, not phishing-resistant4
Passkey on phone or computerUnlock with fingerprint, face or screen-lock PIN10Depends on the security of your device and the app or account that stores your passkeys11Phishing-resistant, acceptable alternative to a key2
Security keyPlug in or tap a small physical device12Costs money, fewer sites accept it, can be lost12Most effective where available2

Free authenticator apps are available.13 A security key is a separate purchase, so check that your services accept keys12 and read the seller's terms first.14 Adding an app or key may leave text codes switched on,15 and some services keep them for account recovery, so you can't always remove them.16

Save the backup codes the service offers: each works once and lets you sign in if you lose your phone or key,17 so keep them safe, away from that phone.18

Your service's security settings show which methods it supports. Turn on the strongest one offered, then remove text codes if allowed.

// sources 34 cited
  1. 1
    Implementing Phishing-Resistant MFA (CISA fact sheet)
    "MFA is a security control that requires a user to present a combination of two or more different authenticators (something you know, something you have, or something you are) to verify their identity for login."
  2. 2
    Mobile Communications Best Practice Guidance (CISA)
    "Where feasible, hardware-based FIDO security keys, such as Yubico or Google Titan, are the most effective; however, FIDO passkeys are an acceptable alternative."
  3. 3
    About passkeys (GitHub Docs)
    "Passkeys stored on FIDO2 hardware security keys are also "device-bound,""
  4. 4
    How to: Enable Two-factor Authentication (EFF Surveillance Self-Defense)
    "In recent years, phishing attacks have grown sophisticated enough to ask for 2FA codes, which SMS and authenticator apps have no protection against."
  5. 5
    Passkeys: what you need to know (NCSC)
    "Built on the FIDO2 standard, passkeys are a complete alternative to traditional passwords."
  6. 6
    Passkeys are more secure than traditional ways to log in (NCSC)
    "When user verification is required as part of the login, FIDO2 authentication constitutes multi‑factor authentication."
  7. 7
    Implementing Phishing-Resistant MFA
    "Vulnerable to phishing, SS7, and SIM swap attacks."
  8. 8
    Setting up 2-Step Verification (2SV) (NCSC)
    "Text messages are not the most secure type of 2SV, but still offer a huge advantage over not using any 2SV."
  9. 9
    Setting up 2-Step Verification (2SV) (NCSC)
    "These apps offer lots of advantages over text messages, such as not needing a mobile signal, or having to wait for a text message to arrive."
  10. 10
    Passkeys: what you need to know (NCSC)
    "A passkey is a secure, passwordless authentication method that allows you to log into an app and website using your existing device biometrics (like Face ID or fingerprints) or lock screen PIN."
  11. 11
    Passkeys are more secure than traditional ways to log in (NCSC)
    "Users still depend on the security of their devices and credential managers, and services should give users clear ways to manage and remove credentials and to set up recovery options."
  12. 12
    How to: Enable Two-factor Authentication
    "Security keys are the strongest form of 2FA, but are not as widely supported on websites as other options."
  13. 13
    How to: Enable Two-factor Authentication
    "Many companies make free mobile authenticator apps, like Google Authenticator and Authy."
  14. 14
    Terms and Conditions (Yubico Support)
    "You may contact Customer Support if you need assistance determining which terms and conditions apply to your product or service."
  15. 15
    Mobile Communications Best Practice Guidance (CISA)
    "Enrollment in authenticator-based MFA does not automatically unenroll the account’s SMS."
  16. 16
    Mobile Communications Best Practice Guidance (CISA, via GovInfo)
    "Some online services may default to SMS during account recovery flows, so it may not be feasible to completely eliminate SMS messages from the service."
  17. 17
    How to: Enable Two-factor Authentication
    "Each code works exactly once to log in to your account, and is no longer usable thereafter."
  18. 18
    Setting up 2-Step Verification (2SV) (NCSC)
    "It's also a good idea to have a backup plan, in case you haven't got access to your usual second step"
  19. 19
    How to: Enable Two-factor Authentication
    "security key 2FA and passkey authentication are effectively phishing-proof, because the key will not work on a site that it's not registered for."
  20. 20
    Implementing Phishing-Resistant MFA (CISA fact sheet)
    "This form of MFA should only be used as a last resort MFA option."
  21. 21
    Setting up 2-Step Verification (2SV)
    "Text messages are not the most secure type of 2SV, but still offer a huge advantage over not using any 2SV."
  22. 22
    How to: Enable Two-factor Authentication
    "the code sent from SMS or generated in your 2FA app, or a security key"
  23. 23
    How to: Enable Two-factor Authentication
    "An authenticator app generates rotating six-digit codes that are specific to each website you’ve registered with it."
  24. 24
    How to: Enable Two-factor Authentication
    "Security keys plug into your computer or phone through USB, or connect to phones wirelessly with NFC."
  25. 25
    NIST SP 800-63B: Digital Identity Guidelines, Authentication and Authenticator Management
    "Authenticators that involve the manual entry of an authenticator output (e.g., out-of-band and OTP authenticators) SHALL NOT be considered phishing-resistant."
  26. 26
    Implementing Phishing-Resistant MFA (CISA fact sheet)
    "The user submits their username, password, as well as the 6-digit code from their mobile phone's authenticator app."
  27. 27
    Implementing Phishing-Resistant MFA (CISA fact sheet)
    "SIM Swap is a form of social engineering in which cyber threat actors convince cellular carriers to transfer control of the user's phone number to a threat actor-controlled SIM card, which allows the threat actor to gain control over the user's phone"
  28. 28
    Implementing Phishing-Resistant MFA
    "SS7, and SIM swap attacks are not applicable"
  29. 29
    How to use two-factor authentication (X Help Center)
    "Effective March 20, 2023, we will no longer support two-factor authentication using text messages for non-Premium subscribers."
  30. 30
    How to: Enable Two-factor Authentication
    "A second factor can also be another physical device that you purchase separately, called a security key."
  31. 31
    Passkeys (FIDO Alliance)
    "can be stored on your phone or computer, or in a hardware security key"
  32. 32
    Setting up 2-Step Verification (2SV)
    "Some accounts also give you a list of backup codes when you switch on 2SV."
  33. 33
    How to: Enable Two-factor Authentication
    "Remember to keep the codes secure and ensure that no one else sees them"
  34. 34
Edited and verified by Shri, drafted with AI Editor-verified · AI-drafted
// discussion

Sign in to join the discussion.

No comments yet…