1 unstable release

0.1.0 Apr 14, 2022

#1082 in Authentication

29 downloads per month

MIT license

7KB
119 lines

OTP generator

'otp_generator' is simple one time password generator.

Rust Crate API Minimum rustc version

Index

Install

Add this to your Cargo.toml:

[dependencies]
otp_generator = "0.1.0"

Usage

let flags = otp_generator::Flags {digits : true, ..Default::default()};
println!("6 digit Otp = {}", otp_generator::generate(6,&flags).unwrap());

License

MIT

Dependencies

~310KB