macOS
brew install libyubikeylocal Homebrew formula metadata
sudo port install libyubikeyMacPorts ports tree · security/libyubikey/Portfile · source: api.github.com
brew
C library for manipulating Yubico one-time passwords. Version 1.13 via Homebrew; verified from local package data.
install
brew install libyubikeylocal Homebrew formula metadata
sudo port install libyubikeyMacPorts ports tree · security/libyubikey/Portfile · source: api.github.com
sudo apt install libyubikey-devDebian stable package indexes · libyubikey-dev · source: deb.debian.org
sudo dnf install libyubikeyFedora Rawhide package metadata · libyubikey · source: dl.fedoraproject.org
nix profile install nixpkgs#libyubikeynixpkgs package indexes · pkgs/by-name/li/libyubikey/package.nix · source: api.github.com
sudo pacman -S yubico-cArch Linux sync databases · yubico-c · source: geo.mirror.pkgbuild.com
sudo zypper install libyubikey-developenSUSE Tumbleweed package metadata · libyubikey-devel · source: download.opensuse.org
overview
C library for manipulating Yubico one-time passwords
history
libyubikey is the C library inside Yubico yubico-c for low-level YubiKey one-time-password work: modhex conversion, OTP parsing, and OTP generation around the original Yubico authentication model.
Yubico was founded in Stockholm in 2007 and launched YubiKey 1.0 in 2008 as a driverless one-touch OTP authenticator that identifies as a keyboard. yubico-c followed as the low-level C software development kit for the YubiKey authentication device.
The yubico-c repository describes the command-line tools that expose the library concepts: modhex converts between modhex, hex, and binary forms; ykparse decrypts and parses one OTP with the corresponding AES key; ykgenerate constructs and encrypts one OTP from key and internal token data.
libyubikey belongs to the pre-FIDO YubiKey software stack, when OTP validation and provisioning were central to deploying hardware authentication. As Yubico and Google moved U2F into the FIDO Alliance in 2013 and browsers and services adopted FIDO U2F from 2014 onward, libyubikey remained relevant for legacy OTP integrations and tooling rather than newer WebAuthn flows.
Yubico announced end-of-life for yubico-c on February 19, 2025, with end-of-life scheduled for February 19, 2026. That makes the package historically important as part of the original YubiKey OTP era, even where newer Yubico libraries cover PIV, FIDO, OATH, or platform-specific use cases.
Packagers expose libyubikey as a small C library plus tools for modhex and YubiKey OTP token work. It is most useful for test vectors, provisioning scripts, compatibility tooling, and software that needs to parse or generate Yubico OTP values without pulling in higher-level device-management stacks.
For package nerds, libyubikey is a tiny security package with a lot of context packed into it: custom alphabets, AES-backed OTP fields, hardware-token history, man pages, Autotools, and a clear line from early two-factor authentication to later FIDO/WebAuthn ecosystems.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
modhex | cli | global executable | |
ykgenerate | cli | global executable | |
ykparse | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://yubico.github.io/yubico-c/
install metadata
| Package key | brew:libyubikey |
|---|---|
| Version | 1.13 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/libyubikey |
| Homepage | https://yubico.github.io/yubico-c/ |
| Repository | https://github.com/Yubico/yubico-c |
| Upstream docs | https://yubico.github.io/yubico-c |
| License | BSD-2-Clause |
| Source archive | https://developers.yubico.com/yubico-c/Releases/libyubikey-1.13.tar.gz |
| Bottle | available (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | libyubikey |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libyubikey-dev 1.13-6
Yubikey OTP library development files
https://developers.yubico.com/yubico-c/
sudo apt install libyubikey-devlibyubikey0 1.13-6
Yubikey OTP handling library runtime
https://developers.yubico.com/yubico-c/
sudo apt install libyubikey0libyubikey
nix profile install nixpkgs#libyubikeylibyubikey-dev 1.13-6
Yubikey OTP library development files
https://developers.yubico.com/yubico-c/
sudo apt install libyubikey-devlibyubikey0 1.13-6
Yubikey OTP handling library runtime
https://developers.yubico.com/yubico-c/
sudo apt install libyubikey0libyubikey 1.13-27.fc44
C library for decrypting and parsing Yubikey One-time passwords
http://opensource.yubico.com/yubico-c
sudo dnf install libyubikeylibyubikey-devel 1.13-27.fc44
Development files for libyubikey
http://opensource.yubico.com/yubico-c
sudo dnf install libyubikey-develyubico-c 1.13-8
Yubico YubiKey C library
https://github.com/Yubico/yubico-c
sudo pacman -S yubico-clibyubikey-devel 1.13-3.29
Yubico's USB key low-level C library
https://developers.yubico.com/
sudo zypper install libyubikey-devellibyubikey-tools 1.13-3.29
Tools to support Yubico's USB key low-level C library
https://developers.yubico.com/
sudo zypper install libyubikey-toolslibyubikey0 1.13-3.29
Yubico's USB key low-level C library
https://developers.yubico.com/
sudo zypper install libyubikey0libyubikey
sudo port install libyubikeysource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.