ThisCalculator

Everyday

Hardware Security Key Guide: How They Work & Which to Pick

Updated · Standard formula, shown below

Average pace 5.00 min/km
Average speed
12.00 km/h
Result
Finish time
50 min
You entered
Distance
10 km
You entered

Hardware Security Key Guide: How They Work & Which to Pick

A hardware security key is a small physical device that proves who you are when you log in, replacing or supplementing passwords and one-time codes. You plug it in or tap it, and it uses public-key cryptography to authenticate you without ever revealing a secret that can be phished. This guide explains how security keys work, what to look for when buying one, and how to use them safely.

What Is a Hardware Security Key?

A hardware security key is a dedicated device—often shaped like a USB stick or a small card—that stores private keys and performs cryptographic operations. When you log in to a supported service, the key signs a challenge from the server, and the server verifies the signature using a public key. Because the private key never leaves the device, an attacker who steals your password or tricks you into entering it on a fake site still cannot authenticate without the physical key.

Security keys implement standards like FIDO U2F and WebAuthn. U2F was the early standard, and WebAuthn is the modern one built into browsers and operating systems. Most current keys support both, along with older protocols like smart card (PIV) or OpenPGP for specific use cases.

How a Security Key Authenticates You

The core idea is public-key cryptography. When you register a key with a service, the key generates a new key pair: a private key stored securely inside the device and a public key sent to the service. The private key never leaves the device—it is protected by the hardware and often by a PIN or biometric.

During login, the service sends a random challenge (a string of bytes). The key signs that challenge with the private key. The service verifies the signature with the stored public key. Because the challenge is unique per login, a captured signature cannot be replayed. Even if a phishing site asks you to log in, it cannot get a valid signature for the real service because the challenge and the origin (the website domain) are part of the signed data.

Most keys also support a feature called resident keys (discoverable credentials). With resident keys, the key itself stores the credential ID, so you don’t need to type a username first. This is what enables passwordless login on many sites.

What to Look for When Buying a Security Key

Not all keys are equal. Consider these factors before you buy:

  • Connector type: USB-A, USB-C, Lightning, or NFC. Pick one that matches your devices. USB-C is common on modern laptops and phones; NFC lets you tap on Android phones.
  • Protocol support: FIDO2/WebAuthn is essential. If you need older smart card features (like PIV for Windows login or OpenPGP for email), look for a key that explicitly supports them.
  • Security features: A PIN or biometric (fingerprint) adds a second factor on top of the key itself. If someone steals the key, they still need the PIN.
  • Durability: Keys are small and easy to lose. Look for a sturdy build, and consider a model with a keyring hole.
  • Price: Basic FIDO U2F keys cost around $20–$30. Models with more features (NFC, biometric, multiple protocols) can cost $50–$80.

Some keys are designed for specific ecosystems (e.g., Google’s Advanced Protection Program), but most work across any service that supports FIDO2/WebAuthn. Check the service’s documentation to be sure.

How to Set Up and Use a Security Key

Setting up a key is straightforward, but the exact steps vary by service. The general process:

  1. Go to your account’s security settings and look for “security key” or “two-factor authentication.”
  2. Choose “add a security key” and follow the prompts. You will usually be asked to insert the key and press a button or touch a sensor.
  3. Give the key a name (e.g., “Work key”) so you can recognize it later.
  4. Test the key by logging out and back in.

When you log in, you will typically enter your password, then insert the key and tap it. Some services allow passwordless login: you just insert the key and tap, and the key provides the credential.

If you lose your key, you need a backup method. Most services let you register multiple keys, or you can use backup codes. Always set up a backup before you rely on a single key.

Common Problems and How to Fix Them

Security keys are reliable, but you may encounter issues:

  • Key not recognized: Try a different USB port or cable. On some laptops, the USB-C port may not support the key’s protocol. Check if the key needs a driver (rare on modern OSes).
  • NFC not working: Make sure NFC is enabled on your phone and that you tap the key to the correct area (usually the top back of the phone).
  • Browser not supported: Older browsers may not support WebAuthn. Use a current version of Chrome, Firefox, Edge, or Safari.
  • Key works on one site but not another: The site may not support FIDO2, or it may require a specific key type (e.g., security key with PIN).

If you forget your PIN, most keys have a way to reset, but that will erase all credentials stored on the key. You will need to re-register the key on every service.

Security Keys vs. Other Two-Factor Methods

Security keys are generally considered the strongest form of two-factor authentication (2FA). Here’s how they compare:

  • SMS codes: Vulnerable to SIM swapping and phishing. Not recommended.
  • Authenticator apps (TOTP): Better than SMS, but codes can be phished if you enter them on a fake site. The secret is stored on your phone, which can be compromised.
  • Push notifications: Convenient, but a user can accidentally approve a malicious login. Some implementations are phishing-resistant.
  • Security keys: Phishing-resistant by design. The key only signs for the correct origin, so even if you are tricked into visiting a fake site, the key won’t authenticate.

The main downside of security keys is physical: you need to have the key with you. That’s why it’s wise to have two keys (one as a backup) or use a backup code.

Safety, Privacy, and Limitations

Security keys protect against phishing and remote attacks, but they are not magic. If someone steals your key and knows your PIN (or if you have no PIN), they can access your accounts. Always set a PIN or use biometric unlock if available.

Keys are also vulnerable to physical attacks, but modern keys have tamper-resistant chips. Some keys are certified to common criteria like FIPS 140-2, which indicates a certain level of security assurance.

Privacy-wise, security keys do not track you. They generate a different public key for each site, so a site cannot use your key to track you across the web. The key itself contains no personal data unless you store a certificate on it (like PIV).

One limitation: not all websites support security keys. Many major services (Google, Microsoft, GitHub, Twitter) do, but smaller sites may not. You may still need passwords or TOTP for some accounts.

Frequently Asked Questions

Can a security key be used on multiple devices? Yes. The key itself is portable. You can plug it into any device that supports the protocol. The credentials are stored on the key, not on the device.

What happens if I lose my security key? You need a backup method. If you registered a second key, use that. If not, use backup codes or another 2FA method. Some services allow you to remove the lost key remotely, but you must prove you own the account.

Is a security key better than Google Authenticator? For most people, yes. Security keys are phishing-resistant, while TOTP codes can be phished. However, TOTP is more widely supported and does not require a physical device.

Can I use a security key with my phone? Yes, if the key supports NFC or USB-C. Many modern keys work with Android and iOS (via NFC or Lightning adapter). Check the key’s specifications.

Do security keys work with Windows Hello? Yes, many keys support FIDO2 and can be used with Windows Hello for passwordless sign-in. You may need to configure it in Windows settings.

Are security keys worth it for personal use? If you are concerned about phishing and want the strongest protection for your main email and social accounts, yes. For casual users, an authenticator app may be sufficient, but a key adds a layer of physical security.

Related

Formula used
in t | Finish time | min | 50 | 0
in d | Distance | km | 10 | 0
out pace | Average pace | min/km | t / d | 2
out speed | Average speed | km/h | d / (t / 60) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.