#password #verifying #one-time #generate #totp #hotp #rfc

rsotp

A Rust library for generating and verifying one-time passwords

1 unstable release

0.1.0 Apr 23, 2021

#937 in Authentication

Download history 39/week @ 2024-03-13 58/week @ 2024-03-20 24/week @ 2024-03-27 38/week @ 2024-04-03 19/week @ 2024-04-10 34/week @ 2024-04-17 39/week @ 2024-04-24 534/week @ 2024-05-01 78/week @ 2024-05-08 46/week @ 2024-05-15 50/week @ 2024-05-22 40/week @ 2024-05-29 86/week @ 2024-06-05 79/week @ 2024-06-12 95/week @ 2024-06-19 82/week @ 2024-06-26

345 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