libyubikey
« Back to VersTracker
Description:
C library for manipulating Yubico one-time passwords
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  @yubico  |  formulae.brew.sh
Category: Security
Tags: security authentication hardware-token yubikey c-library otp
Install: brew install libyubikey
About:
Libyubikey is a low-level C library that provides an API for interacting with Yubico's YubiKey hardware tokens. It handles the cryptographic operations needed to validate Yubico OTP (One-Time Password) and HMAC-SHA1 challenge-response authentication. This library serves as a foundational component for developers building custom authentication systems or integrating YubiKey support into existing applications.
Key Features:
  • Support for Yubico OTP validation and generation
  • HMAC-SHA1 challenge-response functionality
  • Low-level C API for maximum performance and control
  • Hardware token interaction and cryptographic operations
Use Cases:
  • Building custom two-factor authentication (2FA) systems
  • Integrating YubiKey hardware token support into C/C++ applications
  • Validating Yubico OTPs for secure login implementations
Alternatives:
  • libfido2 – More modern library supporting FIDO2/WebAuthn standards, while libyubikey focuses on legacy Yubico OTP protocols
  • ykpers – Higher-level library for configuring YubiKeys, whereas libyubikey provides core cryptographic primitives
Version History
Detected Version Rev Change Commit
Sep 11, 2025 5:40am 0 VERSION_BUMP 02cd8a46