| Crates.io | easy_totp |
| lib.rs | easy_totp |
| version | 0.5.0 |
| created_at | 2025-08-11 06:32:22.634399+00 |
| updated_at | 2025-11-11 03:14:03.136824+00 |
| description | TOTP in Rust. Made easy. |
| homepage | https://github.com/JonathanMcCormickJr/easy_totp |
| repository | https://github.com/JonathanMcCormickJr/easy_totp |
| max_upload_size | |
| id | 1789683 |
| size | 80,301 |
TOTP in Rust. Made easy.
A lightweight library for generating and verifying Time‑Based One‑Time Passwords (TOTP) in Rust.
It is crucial to handle these secrets with care. Exposing your TOTP secrets can compromise the security of your accounts. Always ensure that your secrets are stored securely and are not shared or logged inappropriately. Remember, if you use the QR code for onboarding, anyone with access to that QR code can generate valid TOTP codes for your account.
It's okay to send a code from the client to the server for verification, but never the other way around.
To enhance security, consider implementing rate limiting on TOTP verification attempts. This can help prevent brute-force attacks.
The documentation for easy_totp can be found at docs.rs/easy_totp.
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
By contributing to this project, you agree to have your contributions licensed under the project's overall license: MIT.