SMS, App or Security Key? Choosing the Safest Two-Factor Login
Compare SMS codes, authenticator apps, push prompts, hardware security keys and passkeys, then choose the right protection for each account and threat.

A text message can arrive while its intended recipient is standing beside a stolen laptop. A familiar push notification can flash across a phone screen, asking its owner to approve a sign-in that is not really theirs. On another screen, a fake login page quietly collects a one-time code. The second step of login is supposed to make an intruder’s task harder. The wrong implementation can instead turn a stolen password into a convincing path into an account.
There is no single “safe” second factor for everyone. SMS codes, authenticator apps, push prompts, physical security keys and passkeys each involve different trade-offs. The useful question is not simply which method is strongest, but which attacks matter for the account, how the method is used, and whether its inconvenience is acceptable in that setting.
The basic idea: possession, knowledge and inheritance
Multi-factor authentication, also called two-factor authentication when exactly two types of evidence are required, asks for more than one kind of proof before granting access. A password is “something you know.” A phone, card or security key can represent “something you have.” A fingerprint or face can represent “something you are.”
One illustration is an ATM withdrawal: it requires both a physical bank card and the correct PIN. Remove either component and the second layer disappears. In online login, the same principle applies. A stolen password may provide the first layer, while a second method tests whether the person logging in also controls another factor.
This distinction matters because some methods reuse the password’s fundamental weakness. SMS and authenticator codes may still involve typing a secret into a website. A security key or passkey instead proves possession of cryptographic key material without exposing the private key.
SMS codes: convenient, but exposed to the phone number
SMS authentication sends a one-time code to a mobile telephone number. The user reads the message and enters the code. It is easy to understand and requires little beyond a mobile phone, which explains why SMS is the most commonly used second-factor option.
Its central risk is the association between the code and the phone number. In a SIM swap attack, a fraudster persuades a mobile service provider to move a victim’s number to a different SIM. Once that happens, the attacker can receive the victim’s text messages and calls, including one-time passwords sent by services that use the number for sign-in or recovery.
SIM swapping is not the only concern. Phones can be compromised, text messages can be read in some circumstances, and maintenance personnel may have access to messages. If malware or an attacker gains control of the phone, the device no longer represents a factor that only the legitimate user possesses.
SMS also does not prevent phishing by itself. A fraudulent page can ask for the code just as the legitimate service would. Nor does receiving a familiar text prove that the login request came from the genuine service. In short, SMS protects against some password-only attacks, but it is particularly vulnerable when control of the phone number or phone itself can be taken.
Authenticator apps: codes without the mobile network
An authenticator app replaces the text message with a constantly refreshing code generated on the user’s device. This is a time-based one-time password, or TOTP. The app and the service share secret key material that allows both sides to calculate matching codes.
The usual code changes at a set interval. This makes a captured code less useful than a reusable password because it expires quickly. An authenticator app also avoids routing the code through SMS, so a SIM swap alone cannot intercept it. It may be a practical improvement for accounts that currently use text messages, especially when losing access to the mobile network would be inconvenient or dangerous.
However, an app code remains something the user must copy into a login page. That creates a phishing opportunity. Because the code is valid only for a short period, an attacker who wants to steal it generally has to proxy the credential in real time. The short life of the code is therefore helpful, but it does not make the method immune to phishing.
The shared secret also creates another point of exposure. The app and the service each hold information capable of generating valid codes. If an attacker steals that secret, the attacker can generate new codes without needing the legitimate user’s phone. This can be especially serious when an authentication database is breached.
For illustration, imagine a fake page that opens as soon as a user follows a misleading sign-in link. It asks for the password and the current authenticator code. The method has protected the user against a copied database password and an intercepted SMS, but it has not automatically recognized that the website is fraudulent.
Push prompts and MFA fatigue: convenience depends on judgment
Push-based authentication asks the user to approve a sign-in on a mobile device. It removes the need to read and type a code, making the interaction feel more direct. The approval itself is the second piece of evidence.
Its weakness is that the user must decide whether a prompt is legitimate. MFA fatigue attacks exploit this human step. Repeated requests or pressure can encourage a user to approve a sign-in without pausing to investigate. A familiar device, a plausible message and a button that merely says “approve” may not provide enough information for a careful judgment.
A push prompt can also involve more than one device. Some services send approval requests to several registered devices, creating another opportunity for an unintended acceptance. This is why prompt design and user habits matter, not just the cryptographic operation behind the service.
Push authentication is generally more convenient than entering a rotating code. It is preferable to SMS where it is offered because the signal travels through an app rather than a text message, reducing its exposure to SIM swapping. Nevertheless, it should not be treated as immune to MFA fatigue. Anyone approving a prompt should confirm that the request is expected and understand how the service identifies the device or location involved.
Hardware security keys: the strongest conventional choice
A physical security key is a dedicated possession factor. Connected versions transmit authentication information through a physical connection or nearby wireless link. The device can perform a cryptographic operation and prove possession of a private key without revealing that key.
Physical keys are generally the most secure MFA option. Their central advantage is that the login does not depend on a code that must be read, copied and relayed. A stolen password alone is insufficient, and the key itself is required to complete the exchange. The key can also use a challenge-response process in which the service sends a challenge and the device proves that it holds the corresponding private key.
This makes the method a strong choice for valuable accounts, administrative access and other situations where protection matters more than carrying another device. It can also help with phishing because the credential need not be manually entered into a page. Nevertheless, the person remains responsible for connecting the right key to the right request and for not approving an illegitimate one.
There are practical costs. A user may need to carry the key and keep it available. Loss and theft become risks. Some organisations restrict USB or electronic devices in certain premises, and many important computers lack a USB port. Physical tokens also do not always scale neatly: a separate key may be needed for each account or system, creating purchasing, replacement and administration costs.
These drawbacks explain why a key may be sensible for a sensitive account but excessive for a low-risk service. Security is a trade-off, not a checklist to complete everywhere with identical tools.
Passkeys: possession and cryptography without a typed secret
Passkeys represent a credential-based approach built around the same cryptographic idea as modern security keys: the user proves possession of a private key, while the service verifies the related public-key material. Where a device unlocks the credential with a fingerprint or face recognition, the process can combine possession with an inherent factor.
Because the credential is not a reusable code typed into a form, a passkey-based login can offer a stronger phishing-resistant alternative. The important distinction is that authentication is performed through cryptographic verification rather than by giving an attacker a secret to copy. That avoids the familiar sequence in which a user supplies both a password and a valid code to a convincing imitation.
Passkeys also avoid the recurring-code problem of an authenticator app, but they create new operational questions. A user may need to understand where the credential is stored, how the associated device is managed and what happens when a phone is lost or replaced. Those questions matter because a smooth login can be undermined by poor recovery arrangements.
For illustration, consider an account protected by a passkey. The user selects the account and completes a cryptographic check on a registered device. A fake page cannot simply ask for a six-digit code, but it may still try to trigger a passkey prompt. The user should confirm that the request is for the intended service and that the device displays the appropriate context before approving it.
Which method suits which account?
A sensible starting point is to avoid SMS wherever a stronger alternative is available, particularly for accounts tied to money, identity, communications or an organisation’s administration. An authenticator app is a practical step up because it removes the mobile network from the login process, although it can still be phished. Push approval can be convenient, but it should be used with careful attention to unexpected prompts.
For the most sensitive accounts, a physical security key offers the strongest conventional MFA choice. Passkeys can provide a similarly cryptographic login experience without requiring a separate key for every account, making them a compelling option where the device and recovery process are managed well.
A practical checklist is:
- Inventory the account. Consider what the account controls, how it can be recovered and how harmful unauthorized access would be.
- Identify likely attacks. A service used mainly through a mobile number needs protection against SIM swapping. An account often targeted by convincing messages needs stronger resistance to phishing.
- Choose the strongest supported option. Prefer a passkey or security key where appropriate; consider an authenticator app or carefully handled push prompt as alternatives to SMS.
- Use unique passwords. The second factor is strongest when the first factor is not reused across services.
- Secure recovery. Review recovery phone numbers, alternate devices and account-recovery methods, because attackers may target the route used to regain access.
- Keep more than one route. Store a backup security key or another planned recovery method where the stakes justify it.
For most users, the practical hierarchy is straightforward: a well-managed passkey or hardware key for the most important accounts, an authenticator app for strong and convenient everyday protection, push prompts only with deliberate approval, and SMS when it is the only available option.
Frequently asked questions
Is SMS two-factor authentication better than no two-factor authentication?
Yes. Even with its weaknesses, SMS adds a second factor to a stolen password and is better than relying on that password alone. Its main danger is that control of the phone number or phone can give an attacker the same code.
Are authenticator apps safe from phishing?
No. Authenticator codes are short-lived and are not exposed to SIM swapping, but the user must still enter them into a login page. A convincing fake site can therefore collect a valid code and proxy it while it remains usable.
Are push notifications safer than text messages?
Push prompts avoid sending the code through the mobile network, but they move trust to the user’s approval decision. MFA fatigue can weaken that protection by encouraging repeated or unthinking acceptance, so unexpected prompts should never be approved automatically.
Should every account use a hardware security key?
That is not necessary. Hardware keys are generally the most secure MFA option and suit sensitive accounts, but their cost and inconvenience can be disproportionate elsewhere. A layered approach can reserve the strongest methods for the accounts that matter most.
The safest second factor is not simply the one with the longest name or the newest interface. It is the method that defeats the attacks relevant to an account, fits how the user will use it, and has recovery arrangements that will still work when a device is lost, replaced or compromised. Start with the account that would hurt most, choose the strongest supported protection you will consistently use, and then work outward.
Sources: Wikipedia — Multi-factor authentication; SIM swap scam; Security token; Time-based one-time password. Facts checked against the article text before publication.


