| Crates.io | eztotp |
| lib.rs | eztotp |
| version | 0.1.0 |
| created_at | 2022-03-10 17:24:03.763627+00 |
| updated_at | 2022-03-10 17:24:03.763627+00 |
| description | An easy-to-use TOTP solution. |
| homepage | |
| repository | https://github.com/raohwork/eztotp |
| max_upload_size | |
| id | 547707 |
| size | 34,495 |
This crate provides a ready-to-use TOTP solution.
It supports some features not directly related to Totp:
These features require you to save the struct after every successful attempt. To make it easier, [serde::Serialize] and [serde::Deserialize] are derived on it.
Don't forget to use exclusive lock in your DB (or whatever you persist the struct) to ensure the load-verify-save process is atomic, or attacker may reuse the code even if you disable code reusing.
eztotp is free software: you can redistribute it and/or modify it under
one of following licenses:
eztotp is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.
You should have received a copy of the GNU Lesser General Public License and
Mozilla Public License along with eztotp. If not, see