De technische werking van hardware security keys: YubiKey vs Feitian

The technical operation of hardware security keys: YubiKey vs. Feitian

In an era where passwords are increasingly being leaked or cracked, hardware security keys are rapidly gaining popularity. Well-known examples include solutions from Yubico (YubiKey) and Feitian. But how do these physical keys actually work technically? And why are they so secure?

What is a hardware security key?

A hardware security key is a physical device (usually via USB, NFC, or Bluetooth) used for strong authentication. Instead of just a password, you add a second factor — something you physically possess.

These keys are based on standards such as:

  • FIDO U2F (Universal 2nd Factor)
  • FIDO2 / WebAuthn
  • OTP (One-Time Password)
  • Smartcard (PIV)

Cryptography as a foundation

The core of both YubiKey and Feitian keys is asymmetric cryptography.

When you register a key on a website:

  • The key generates a unique key pair:
    • Private key (remains secure on the hardware)
    • Public key (is stored by the website)
  • When logging in:
    • The server sends a “challenge”
    • The key signs this challenge with the private key
    • The server verifies this with the public key

 

The private key never leaves the device.

This prevents phishing, because the key only reacts to the correct domains.

Secure element & hardware security

Both YubiKey and Feitian use a secure element (similar to a chip in payment cards).

This chip:

  • Stores private keys securely
  • Performs cryptographic operations internally
  • Is protected against physical attacks (tamper-resistant)

In the event of an attempted tamper, the chip can even disable itself.

FIDO2 and WebAuthn: the modern standard

The latest generation of keys supports FIDO2 + WebAuthn.

Technical process:

  1. Browser (e.g., Chrome) requests authentication
  2. The key is accessed via the WebAuthn API
  3. The user confirms physically (touch)
  4. The key signs the challenge + origin (website)
  5. Server validates the signature

This enables passwordless login.

  • Differences between YubiKey and Feitian

Although they support the same standards, there are some technical and practical differences:

1. Firmware & ecosystem

  • YubiKey (Yubico):
    • Strong proprietary ecosystem
    • Regular firmware audits
    • Many integrations
  • Feitian:
    • Often cheaper
    • Strong in enterprise and government applications
    • Supports similar protocols

2. Openness and certifications

  • Both support FIDO standards
  • Feitian often has extensive smartcard (PIV) support
  • Yubico focuses strongly on ease of use and developer tools

3. Hardware variants

Both offer:

  • USB-A / USB-C
  • NFC
  • Bluetooth (on some models)

OTP (One-Time Password) fallback

Besides modern FIDO2, many keys also support OTP.

For example:

  • The key generates a temporary code
  • This is entered or sent automatically
  • Server validates via shared secret

This is less secure than FIDO2, but useful as a fallback.

Why are hardware keys so secure?

  1. Phishing-resistant
    → Domain binding prevents misuse on fake websites
  2. No shared secrets
    → Private keys remain local
  3. Physical presence required
    → Attacker must possess the key
  4. Not susceptible to keylogging
    → No passwords to steal

Limitations and considerations

  • You can lose the key → always have a backup key
  • Not every website supports FIDO2
  • Initial setup requires some technical knowledge

Conclusion

YubiKey and Feitian keys offer one of the strongest forms of authentication currently available. By utilizing asymmetric cryptography, secure hardware, and modern standards like FIDO2, they eliminate many of the weaknesses of traditional passwords.

For both individuals and organizations that take security seriously, hardware security keys are no longer a luxury — but a necessity.

Back to blog