challenge-response
challenge-response is a Rust library for performing challenge-response operations (hashing and encryption) using security keys like the YubiKey and the OnlyKey.
Examples
Code examples for performing a challenge-response (both HMAC and OTP) as well as configuring a device can be found in the examples/ directory.
Current features
- HMAC-SHA1 Challenge-Response
- Yubico OTP Challenge-Response encryption
- Challenge-Response configuration
Supported devices
- YubiKey 2.2 and later
- OnlyKey (untested)
- NitroKey (untested)
Usage
Add this to your Cargo.toml
[]
= "0"
nusb backend (EXPERIMENTAL)
You can enable the experimental nusb backend by adding the following to your Cargo.toml manifest:
[]
= { = "0", = false, = ["nusb"] }
The nusb backend has the advantage of not depending on libusb, thus making it easier to add
challenge_response to your dependencies.
[!NOTE] The
nusbfeature is not available on Windows. If configured, the library will default to using therusbbackend instead.
Credits
This library was originally a fork of the yubico_manager library.
License
MIT or Apache-2.0