authenticator-rs

The rust implementation for google authenticator with 2FA authentication

Usage

Add this to your Cargo.toml:

toml [dependencies] authenticator-rs = "0.2.0"

Example

```rust use crate::authenticator;

fn main(){ let secret = authenticator::createsecret(32); // create a random secret let pincoders = authenticator::currentpincode(secret.asstr(), 6); match pincoders { Ok(code) => { println!("Current Pin Code: {}", code) } Err(e) => { println!("Something has error: {}", e) } } }

```