u2f 0.1.0

Rust FIDO U2F Library
Documentation
[![Build Status](https://travis-ci.org/wisespace-io/u2f-rs.png?branch=master)](https://travis-ci.org/wisespace-io/u2f-rs)
[![Crates.io](https://img.shields.io/crates/v/u2f-rs.svg)](https://crates.io/crates/u2f-rs)

# u2f-rs
Rust [FIDO U2F](https://fidoalliance.org/specifications/download/) library is a simple server side implementation to register and check signatures provided by U2F clients/devices. See [U2F Technical Overview](https://developers.yubico.com/U2F/Protocol_details/Overview.html)

Note: WORK IN PROGRESS

# Usage

Add this to your Cargo.toml

```toml
[dependencies]
u2f = "0.1"
```

Make sure that you have read [Using a U2F library](https://developers.yubico.com/U2F/Libraries/Using_a_library.html) before continuing.

```
extern crate u2f;

use u2f::protocol::*;

fn main() {
   // Generate a challenge for each U2F device that this user has registered.
   let u2f = U2f::new("APP_ID".into());

   // Send registration request to the browser.
   let result = u2f.request();
}

```

## License

Licensed under either of

* MIT license (see [LICENSE]LICENSE or <http://opensource.org/licenses/MIT>)
* Apache License, Version 2.0 (see [LICENSE]LICENSE or <http://www.apache.org/licenses/LICENSE-2.0>)