What Is a Security Key? How It Works and Why It Matters

Updated on November 30, 202614

A security key is a small physical device that helps prove your identity when you sign in to an online account. Instead of relying entirely on a password or a six-digit verification code, you insert the key into a USB port or tap it against a compatible phone. The key uses cryptography to confirm that you possess the registered device and are signing in to the correct service.

Modern FIDO security keys are particularly valuable because they resist phishing attacks that can defeat ordinary verification codes. They can work as a second step after your password or, on supported services, as a passwordless sign-in method.

If your computer is asking for a network security key, however, it usually means your Wi-Fi password, not a physical authentication device. This guide explains both terms, with a focus on hardware security keys for online accounts.

What does a security key look like?

Most hardware security keys are smaller than a typical USB flash drive. They may have a USB-A or USB-C connector, a touch-sensitive contact, a button, a fingerprint reader or support for near-field communication (NFC). Some are designed to stay in a laptop port; others attach to a key ring.

Despite their appearance, they are not ordinary USB storage drives. Their main purpose is to perform authentication operations using protected cryptographic credentials, not to hold your documents or photos.

Examples include the Yubico Security Key series, YubiKey 5 series, Google Titan Security Key and compatible FEITIAN devices. These are examples rather than endorsements; the right model depends on the accounts and devices you need to protect.

How does a security key work?

A modern FIDO security key uses public-key cryptography. Think of it as a device that can produce a mathematical proof that only the registered authenticator should be able to create. The website can verify that proof without receiving the secret credential.

When you register a security key

  1. You sign in to the legitimate website and open its security settings.
  2. You connect or tap the key and approve the registration. A PIN or fingerprint may be required.
  3. The authenticator creates a credential with a public and private key. The service registers the public key and credential identifier.
  4. The private-key material remains protected by the authenticator rather than being sent to the website.

When you sign in again

  1. The website sends a fresh, unpredictable challenge through your browser or supported app.
  2. You connect or tap your key and complete any requested user verification.
  3. The authenticator signs the challenge using the registered credential, with the authentication operation bound to the relying party’s identity.
  4. The service verifies the signature and other required checks before allowing access.

The important difference is that there is no reusable verification code for you to copy into a fake login page. The browser and authenticator enforce the website identity associated with the credential, making FIDO authentication resistant to conventional credential phishing.

What are FIDO2, WebAuthn and U2F?

FIDO2 brings together WebAuthn, the web authentication standard used by browsers and websites, and CTAP, the protocol used to communicate with an external authenticator. FIDO U2F is an earlier standard typically used for a second authentication factor. A modern key may support both, as well as other protocols.

For a new purchase, look for FIDO2 support and FIDO certification. A USB token that only produces one-time passwords does not automatically provide the same phishing resistance. See the FIDO Alliance’s explanation of passkeys and Microsoft’s FIDO2 overview for the underlying standards.

Why are security keys more secure than text message codes?

Imagine receiving an email claiming your account will be suspended. You follow its link to a convincing but fake sign-in page. If you type in your password and a six-digit code, an attacker may relay both to the genuine website before the code expires.

A FIDO security key registered to the genuine service will not produce a valid authentication assertion for that service through an unrelated phishing domain. This is the major advantage: protection is built into the authentication protocol rather than depending only on your ability to spot suspicious websites.

Security keys also avoid reliance on SMS delivery, which can be disrupted by mobile network problems and can be vulnerable to phone-number takeover. However, the key protects the sign-in process, not everything that happens on your device afterward. Malware, stolen session cookies, malicious app permissions and insecure recovery methods remain risks.

Security key vs authenticator app vs passkey

These options are related but not interchangeable. An authenticator app generating one-time codes is different from an app that stores FIDO passkeys. A physical key can itself store a passkey.

MethodWhat you usePhishing resistant?Typical recovery
SMS verificationCode sent to phone numberNoRecover number or account
Authenticator code (TOTP)Time-based code in an appNoBackup app data or recovery codes
FIDO security keyDedicated USB or NFC deviceYes, in FIDO modeRegistered spare key or approved recovery
Synced passkeyPhone, computer or credential managerYes, when using FIDOPasskey provider’s recovery or alternate credential

Recovery varies by service. An account can still be vulnerable if an attacker can bypass its strong authentication method using a weaker recovery route.

Is a security key the same as a passkey?

No. A passkey is a FIDO authentication credential, while a physical security key is one type of device that can hold and use such a credential. Passkeys can also be stored on a phone, computer or a credential manager that synchronizes them between devices.

A hardware-bound passkey normally stays with the physical authenticator. A synced passkey is designed to be available across your authorized devices, subject to the provider’s security and recovery mechanisms. Both can resist phishing; the difference is chiefly how the credential is stored, accessed and recovered.

Does a security key replace your password?

It depends on the service and how you register the key. When used as a second factor, you enter your password first and then prove possession of the key. When used for supported passwordless sign-in, the key can authenticate you without entering the account password, often with a PIN or fingerprint to verify the person holding it.

A key’s touch sensor is not necessarily a fingerprint reader. On many models it simply confirms that a person is present and deliberately interacting with the device.

Where can you use a security key?

Support is determined by the particular service, account type, browser, device and, for work accounts, administrator policy. These examples show why it is worth checking the official instructions before buying a key.

ServiceHow keys are usedOfficial instructions
Google / GmailTwo-step verification or a supported security-key passkeyGoogle Account Help
Apple AccountAdditional protection for two-factor sign-in; at least two compatible certified keys requiredApple Support
Microsoft work or school accountFIDO2 sign-in if the organization enables itMicrosoft Support
Other websites and password managersSecond factor or passkey, depending on the productCheck the specific service’s security documentation

Start with your primary email account and password manager (if supported). Email often controls password resets for many other accounts, which makes it an especially important place to use strong authentication. Then consider work accounts, website administration and other high-value services.

How to set up a security key

You do not usually need to install a special driver for standard FIDO authentication in a supported modern browser. You do need a compatible key, an account that supports it and a working recovery method.

  1. Check compatibility. Confirm FIDO support, your account’s requirements and whether you can connect the key to your phone and computer.
  2. Get a primary and spare key. Choose two compatible devices where possible. Registering a spare requires its own enrollment; it is not automatically a copy of the first key.
  3. Open the genuine account settings. Navigate directly to the provider’s website or app, rather than following an unsolicited email link.
  4. Find the sign-in security section. Look for security keys, passkeys, two-step verification or authentication methods.
  5. Add the first key. Insert or tap it, follow the prompt, and set or enter a PIN if requested. Name it clearly, such as Daily key.
  6. Add the backup key separately. Label it Spare key and store it away from your everyday key.
  7. Test before changing recovery settings. Keep an existing session open and test both keys from a separate browser session or device where the service requests authentication. Save approved recovery codes if offered.

Do not remove your previous sign-in or recovery options until you know the replacement works and understand the provider’s recovery policy. Some services impose a waiting period before new credentials are fully trusted.

How to use a security key on your phone

When prompted to use an NFC-enabled key, hold it near the phone’s NFC reader until the authentication prompt completes. For a USB-C or Lightning model, plug it into the compatible port. The exact behavior depends on the operating system and app. If the phone fails to detect the key, try adjusting its position, removing a thick case, or checking whether the service supports that connection method.

How to choose the right security key

Rather than choosing the most expensive model, match the device to your actual sign-in requirements. For someone who uses a USB-C laptop and an NFC-capable phone, a FIDO2 key with both USB-C and NFC is a sensible starting point, provided both services support those transports.

FeatureWhat to check
FIDO certificationLook for a certified FIDO2 authenticator and any certification level required by your organization.
ConnectorUSB-A for older computers, USB-C for many newer devices, NFC for compatible phones.
Credential capacityCheck how many discoverable credentials (including passkeys) the specific model can store.
User verificationPIN support or fingerprint recognition if required. A touch-only contact is not biometric verification.
Extra protocolsOnly pay for smart-card, OTP or other features if your accounts or workplace actually require them.
Backup costBudget for two independently enrolled keys, not just one.

Buy from the manufacturer or an authorized, reputable seller. Avoid secondhand keys of unknown provenance. Check the manufacturer’s reset, PIN and firmware documentation before use.

What happens if you lose your security key?

Losing a key does not automatically give the finder access to your accounts. For second-factor use, an attacker would normally also need your password; for passwordless credentials that require user verification, the key’s PIN or biometric check offers additional protection. Nevertheless, you should treat a lost key as a security incident.

  1. Use a registered spare key or another legitimate recovery method to access your account.
  2. Remove the lost key from the account’s authentication settings.
  3. Review recent sign-ins and revoke any suspicious sessions.
  4. Register a replacement and test it before putting it into regular use.
  5. Repeat this process for every account on which the missing key was registered.

If you lose every registered key and have no permitted recovery method, you may be permanently locked out. Apple explicitly warns of this risk if all trusted devices and keys are lost. A new, unregistered security key cannot simply unlock an old account.

A practical two-key recovery plan

Keep your everyday key with you and the spare in a secure, separate location. Maintain a private inventory of which accounts each key is registered with (without recording passwords or PINs in an unsecured document). Test both keys periodically and after changes to your devices or account settings. Store recovery codes separately in a secure location, if the service offers them.

Security key not working? Common problems and fixes

ProblemWhat to try
Key is not detectedConnect directly to a compatible port, try another data-capable adapter, update the browser and operating system.
NFC does not respondCheck compatibility, enable NFC where applicable, reposition the key and remove a thick case.
Key is not recognized by the accountConfirm that this exact key was registered with the correct account and that you are on the genuine website.
PIN rejectedCheck whether the prompt asks for your key PIN rather than your computer or account PIN. Avoid repeated guesses.
Work account will not allow enrollmentContact your IT administrator to verify the authentication policy and approved authenticator models.
Passkey storage is fullConsult the manufacturer’s credential management instructions before removing unused credentials.

Important: A factory reset can erase credentials and invalidate access to accounts using that key. Do not reset a key as a first troubleshooting step; establish working alternate access and read the manufacturer’s instructions first.

What security keys cannot protect you from

Even a well-configured security key cannot stop every form of account compromise. It does not automatically protect an already authenticated browser session, prevent you from approving a malicious app’s access to your data, or secure a device infected with malware.

Keep software updated, use unique passwords wherever passwords remain necessary, review connected applications and secure account recovery. Businesses should also consider requiring phishing-resistant authentication for privileged users and restricting weaker fallback methods after testing an appropriate recovery process.

Who should use a physical security key?

Hardware security keys are especially useful for people whose accounts have unusually valuable access or who face targeted phishing: business owners, IT administrators, journalists, public figures, website publishers and anyone managing sensitive organizational information.

For everyday users, a supported synced passkey may offer strong phishing resistance with less equipment to carry. A dedicated hardware key can be worthwhile when you prefer separate physical possession, need a credential for multiple devices or have an organization’s hardware-specific security requirement.

If your choice is between a regular password alone and any supported second factor, enabling a second factor is a useful improvement. When phishing-resistant methods are supported and practical, prioritize those rather than abandoning account protection because you have not yet purchased hardware.

What is a network security key?

A network security key is generally the password or pre-shared credential used to join a protected Wi-Fi network. It is completely different from a FIDO hardware security key used to authenticate to websites.

If Windows or another device asks you to enter the network security key, look for the Wi-Fi password on your router’s label if it has not been changed, in your router or network administrator’s settings, or on a device where the password is already saved and you are authorized to view it. Do not confuse the Wi-Fi password with the router’s administrative password.

If a website or browser asks you to insert or tap a security key, it is more likely asking for the physical authenticator or a passkey-related sign-in flow. If it is a BitLocker or disk-encryption recovery screen, that is another different type of key entirely.

Frequently asked questions

Can one security key work with multiple accounts?

Yes. A compatible key can be registered with multiple services, each using its own credential. Discoverable passkey storage is limited by the model, so check its capacity if you manage many accounts.

Do security keys need batteries or internet access?

Typical USB and NFC FIDO keys do not need their own battery or internet connection. The computer or phone supplies power or uses NFC, and the host device normally needs connectivity to sign in to an online service. Other hardware designs may differ.

Can I copy my security key to a second one?

Generally, you cannot export and clone the protected FIDO credentials of a hardware-bound key. Enroll the second key independently with each account. Some non-FIDO protocols have separate backup procedures.

Can a security key be hacked?

No security device is invulnerable. Hardware defects, implementation vulnerabilities, physical attacks and weak account recovery can undermine protection. Modern certified FIDO keys nevertheless provide strong resistance to remote credential phishing when correctly implemented.

Do I have to leave my security key plugged in?

Usually no. Once authentication completes, you can disconnect it unless your particular workplace or application requires continued presence. A later sign-in or sensitive account action may prompt you to reconnect it.

Is a security key a form of multifactor authentication?

Yes, it can be used as a possession factor alongside a password or another independent factor. FIDO passwordless sign-in with verified possession plus a PIN or biometric can also provide multifactor authentication. Merely touching a key does not by itself establish a separate knowledge or biometric factor.

Is a security key worth it?

A physical security key is one of the most effective ways to protect supported online accounts against credential phishing. Its main advantages are cryptographic authentication, portability and keeping a hardware-bound credential separate from your everyday computer or phone. Its main trade-offs are compatibility, the cost of backup hardware and the responsibility of maintaining recovery access.

For high-value accounts, register two compatible FIDO2 keys, test them, and keep the spare somewhere safe. For everyday accounts where dedicated hardware is unnecessary, a supported passkey is another strong option. The best setup is one you can use consistently without creating an avoidable lockout risk.

Related reading: What is multifactor authentication?

Sources and further reading

About the Author: Jian Brant

Founder Jian Brant
Jian Brant is a technology professional and founder of Punch5Media, with extensive experience in web development, enterprise IT, business analysis and digital transformation. Drawing on his experience across public and private sector organizations, he delivers thoroughly researched, practical insights into technology, cybersecurity, software and digital business.

Share this article

Explore technology

Practical, independent technology guides and explanations.

Browse all articles →

Recent articles

Our editorial approach

Clear explanations, practical guidance and responsible research.

Editorial standards →