Yubikey client API library, validation protocol version 2.0.
Enables integration with the Yubico validation platform, so you can use Yubikey's one-time-password in your Rust application, allowing a user to authenticate via Yubikey.
Add this to your Cargo.toml
toml
[dependencies]
yubico = "0.1"
```rust extern crate yubico;
use yubico::Yubico;
fn main() { let yubi = Yubico::new("CLIENTID".into(), "APIKEY".into()); let result = yubi.verify("OTP".into()); match result { Ok(answer) => println!("{}", answer), Err(e) => println!("Error: {}", e), } } ```