#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

#923 in Authentication

Download history 9/week @ 2024-01-04 40/week @ 2024-01-11 56/week @ 2024-01-18 1/week @ 2024-01-25 110/week @ 2024-02-01 75/week @ 2024-02-08 40/week @ 2024-02-15 30/week @ 2024-02-22 44/week @ 2024-02-29 34/week @ 2024-03-07 60/week @ 2024-03-14 35/week @ 2024-03-21 33/week @ 2024-03-28 29/week @ 2024-04-04 20/week @ 2024-04-11 35/week @ 2024-04-18

117 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