Skip to main content

Crate challenge_response

Crate challenge_response 

Source
Expand description

§challenge-response

Latest Version Documentation Build Status Dependency Status MIT licensed Apache-2.0 licensed

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

§Supported devices

  • YubiKey 2.2 and later
  • OnlyKey (untested)
  • NitroKey (untested)

§Usage

Add this to your Cargo.toml

[dependencies]
challenge_response = "0"

§nusb backend (EXPERIMENTAL)

You can enable the experimental nusb backend by adding the following to your Cargo.toml manifest:

[dependencies]
challenge_response = { version = "0", default-features = false, features = ["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 nusb feature is not available on Windows. If configured, the library will default to using the rusb backend instead.

§Credits

This library was originally a fork of the yubico_manager library.

§License

MIT or Apache-2.0

Modules§

config
configure
error
hmacmode
otpmode

Structs§

ChallengeResponse
Device