| Crates.io | otp_generator_custom_length |
| lib.rs | otp_generator_custom_length |
| version | 0.1.0 |
| created_at | 2024-06-17 02:39:36.759961+00 |
| updated_at | 2024-06-17 02:39:36.759961+00 |
| description | Rust library for generating dynamic one-time passwords (OTPs). |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1273973 |
| size | 2,497 |
otp_generator_custom_length is a Rust library for generating dynamic one-time passwords (OTPs). It provides a simple interface to generate OTP codes of variable lengths.
To use otp_generator_custom_length in your Rust project, add it as a dependency in your Cargo.toml:
[dependencies]
otp_generator_custom_length = "0.1.0"
```rust
use otp_generator_custom_length::generate_otp;
fn main() {
let otp_length = 6;
let otp_code = generate_otp(otp_length);
println!("Generated OTP code: {}", otp_code);
}