AngeloKai / u2f-hid-rs

Rust library to interact with U2F Security Keys over USB HID

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Rust USB HID library for interacting with U2F Security Keys

Build Status Maturity Level

This is a cross-platform library for interacting with U2F Security Key devices via Rust. Supports Windows, Linux, and OSX.

Usage

There's only a simple example function that tries to register and sign right now. It uses env_logger for logging, which you configure with the RUST_LOG environment variable:

cargo build
RUST_LOG=debug cargo run --example main

Proper usage should be to call into this library from something else - e.g., Firefox. There are some C headers exposed for the purpose.

About

Rust library to interact with U2F Security Keys over USB HID


Languages

Language:Rust 97.1%Language:C 2.9%