Registry / crypto / yubikey

yubikey

JSON →
library0.8.0rscratesunverified

Pure Rust host-side driver for YubiKey devices supporting PIV-based decryption and signatures.

# Cargo.toml [dependencies] yubikey = "0.8.0"
INSTALL
IMPORT
SIG · YUBIKEY
Y
yubikey
cryptorustv0.8.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

YubiKey
use yubikey::YubiKey;

Opens a YubiKey device and prints its serial number.

use yubikey::YubiKey; fn main() -> Result<(), Box<dyn std::error::Error>> { let mut yk = YubiKey::open()?; println!("Serial: {:?}", yk.serial()); Ok(()) }
Debug
Known issues
gotchaRequires the YubiKey to be connected and may need platform-specific permissions.
fix
Ensure udev rules or driver permissions are set on Linux.
affects: >=0.8.0
Upgrade
Version history
0.8.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
45 hits · last 30 days
node
42
Resources
yubikey — cargo add yubikey · libregistry