1 unstable release

0.1.0 Apr 23, 2021

#1870 in Authentication

Download history 157/week @ 2025-09-13 47/week @ 2025-09-20 3/week @ 2025-09-27 30/week @ 2025-10-04 96/week @ 2025-10-11 57/week @ 2025-10-18 60/week @ 2025-10-25 17/week @ 2025-11-01 15/week @ 2025-11-08 70/week @ 2025-11-15 10/week @ 2025-11-22 9/week @ 2025-11-29 51/week @ 2025-12-06 91/week @ 2025-12-13 88/week @ 2025-12-20 51/week @ 2025-12-27

281 downloads per month

MIT license

13KB
339 lines

rsotp - The Rust One-Time Password Library

rsotp is a Rust library for generating and verifying one-time passwords. It can be used to implement two-factor (2FA) or multi-factor (MFA) authentication methods in anywhere that requires users to log in.

Open MFA standards are defined in RFC 4226 (HOTP: An HMAC-Based One-Time Password Algorithm) and in RFC 6238 (TOTP: Time-Based One-Time Password Algorithm). rsotp implements server-side support for both of these standards.

rsotp was inspired by PyOTP.

No runtime deps