| Crates.io | ootp |
| lib.rs | ootp |
| version | 0.1.1 |
| created_at | 2021-07-16 06:14:59.596175+00 |
| updated_at | 2021-09-07 19:31:59.490072+00 |
| description | OOTP (Open One-time Password) is a supports multiple programming languages. The generated one-time passwords are fully compliant with HOTP (HMAC-based One-time Password) and TOTP (Time-based One-time Password). 🚀It's easy to use! |
| homepage | https://github.com/odroe/ootp |
| repository | https://github.com/odroe/ootp |
| max_upload_size | |
| id | 423365 |
| size | 25,113 |
OOTP (Open One-time Password) is a supports multiple programming languages. The generated one-time passwords are fully compliant with HOTP (HMAC-based One-time Password) and TOTP (Time-based One-time Password). 🚀It's easy to use!
The OOTP for Rust library is a Rust implementation of the OOTP library.
Add the following line to your Cargo.toml file:
[dependencies]
ootp = "0.0.6"
use ootp::*;
fn main() {
let secret = "Base32 decoded secret";
let totp = Totp::secret(
secret,
CreateOption::Default
);
let otp = totp.make(); // Generate a one-time password
println!("{}", otp); // Print the one-time password
}
The OOTP for Rust library is licensed under the MIT license.