Crates.io | otp_generator |
lib.rs | otp_generator |
version | 0.1.0 |
source | src |
created_at | 2022-04-14 04:14:46.731022 |
updated_at | 2022-04-14 04:14:46.731022 |
description | Otp generator |
homepage | |
repository | |
max_upload_size | |
id | 567348 |
size | 9,863 |
'otp_generator' is simple one time password generator.
Add this to your Cargo.toml
:
[dependencies]
otp_generator = "0.1.0"
let flags = otp_generator::Flags {digits : true, ..Default::default()};
println!("6 digit Otp = {}", otp_generator::generate(6,&flags).unwrap());