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

rsotp

A Rust library for generating and verifying one-time passwords

1 unstable release

0.1.0 Apr 23, 2021

#990 in Authentication

Download history 163/week @ 2024-07-21 123/week @ 2024-07-28 106/week @ 2024-08-04 175/week @ 2024-08-11 153/week @ 2024-08-18 23/week @ 2024-08-25 14/week @ 2024-09-01 9/week @ 2024-09-08 52/week @ 2024-09-15 57/week @ 2024-09-22 83/week @ 2024-09-29 85/week @ 2024-10-06 99/week @ 2024-10-13 115/week @ 2024-10-20 49/week @ 2024-10-27 48/week @ 2024-11-03

314 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