Hardware Security Key Explained: YubiKey Setup and When to Use One
A hardware security key proves you are you at sign-in. It resists phishing because its credential never leaves the device and only works for the real site.
By Galactic News Editorial · Published 2026-11-17T02:18:32+00:00 · Updated 2026-11-17T02:18:32+00:00
Hardware Security Key Explained: YubiKey Setup and When to Use One
This small device proves you are really you when you sign in. You plug it into a USB port or tap it against your phone, then touch it. That touch signs a challenge that only works for the real website. A fake login page cannot get a valid answer from the device. That is why these devices resist phishing in a way passwords and text codes do not.
The device stores a private credential on itself. The credential never leaves the device. The service you sign in to keeps only the matching public key. This design is called FIDO2 or WebAuthn. It is the same standard behind passkeys. A YubiKey is the best-known brand, but the same standard works across brands.
How a Hardware Security Key Works
When you register a device with an account, the device creates a unique credential for that site alone. The private half stays on the device. The public half goes to the site. At sign-in, the site sends a challenge. The device signs it, but only after you touch it. The signature is valid for that site and that site only.
This matters because phishing pages copy the look of real login pages. They can steal a password. They can even steal a six-digit code typed in the moment. They cannot steal a signature tied to a different domain. The device simply will not produce one.
There are two main ways to use a key. As a second factor, you type your password first, then touch the device. As a passkey, the device replaces the password entirely. A passkey stored on a hardware device is device-bound. It cannot be copied to another device or synced to the cloud. That is stronger than a synced passkey, but it also means a lost device is a real problem. Plan for that before you start.
Hardware Security Key vs Authenticator App vs Text Codes
| Method | Phishing resistance | Needs phone signal | Works offline |
|---|---|---|---|
| Hardware device | Strong; tied to the real site | No | Yes |
| Authenticator app | Moderate; codes can be phished in real time | No | Yes |
| Text message code | Weak; SIM swap and phishing risk | Yes | No |
| Password alone | None | No | Yes |
An authenticator app is a big step up from text codes. One is a further step up from an app. The device proves physical possession. It also proves the site is genuine. No code-based method does both.
Which YubiKey Should You Buy
Yubico sells two main lines. The YubiKey 5 Series supports FIDO2 and WebAuthn, plus one-time codes, smart card, and OpenPGP. The Security Key Series supports FIDO2 and WebAuthn only. It costs less. Pick the 5 Series if you want the extra protocols. Pick the entry-level series if every account you care about supports FIDO2.
Match the connector to your devices. USB-C fits most modern laptops and phones. USB-A fits older machines. NFC models work with phones by tap. The YubiKey Bio adds a fingerprint reader instead of a PIN for some uses. Firmware on a YubiKey cannot be upgraded, so buy a current model from Yubico or an authorised seller. Do not buy a used key for an important account.
Buy two keys. This is the single most important rule. One has no cloud copy. If you lose your only device, you can be locked out of every account where it is the sign-in method. Register both keys with each account at the same time. Store the spare somewhere safe and separate from the daily key.
How to Set Up a Hardware Security Key
Setup takes about five minutes per account. The steps are similar on Google, Microsoft, Apple, GitHub, and most other large services.
- Plug the device into a USB port, or hold an NFC device near your phone.
- Open the account settings. Look for "Security key", "Passkey", or "Two-factor authentication".
- Choose "Add security key" and follow the prompt. Touch the device when asked.
- If asked, create a FIDO2 PIN. This PIN lives on the device. It protects the key if someone finds it.
- Repeat the same steps with your second device before you remove any other sign-in method.
- Save the account recovery codes somewhere safe, such as a password manager.
Register each account separately. Setting up Google does not set up Microsoft. If a service offers both a hardware device and a passkey option, read the wording. Choose the option that mentions "Security key" if you want the credential stored on the hardware device. Otherwise the passkey may be saved on your phone or computer instead.
On Android, an NFC device can now create and use passkeys by tap. Google added support for NFC devices that speak the FIDO2 protocol on Android 9 and later. Yubico also offers a free YubiKey Passkey Enabler app for Android 14 and later. You need a PIN on the device before you save a passkey to it. If you forget the PIN, the only fix is a reset, which wipes every passkey on the device.
When to Use a Hardware Security Key
Use one for the accounts that would hurt most if lost. Email comes first. Your email account resets passwords everywhere else. Next come password managers, banks, cloud storage, and work accounts. Add social accounts that hold your identity or audience.
One is less useful for accounts that do not support it. Check the Works With YubiKey catalogue on Yubico's site before you buy. Some services still accept only app codes or text codes. For those, use an authenticator app and keep text codes as a last resort.
One does not protect everything. It does not remove malware from a computer. It does not secure a weak email account by itself. It does not stop you from approving a scam on the real site. It protects the sign-in step. Keep the rest of your habits: updates, a password manager, and care with links.
What to Do If You Lose Your Key
Use the backup device you registered. That is why you bought two. Sign in with the spare, remove the lost device from the account, and register a replacement. If you never registered a backup, use the recovery codes you saved. If you have neither, you will need the account recovery process, which can take days and may ask for identity documents.
Report a lost device to your IT team at once if it guards a work account. They can revoke it centrally. For personal accounts, revoke it yourself as soon as you can sign in with another method.
Bottom Line
This device is the strongest practical sign-in protection most people can buy. It resists phishing because its credentials are tied to the real site and never leave the device. Buy two keys, register both with your most important accounts, and keep the spare separate. Five minutes of setup per account buys protection that no password or code can match.