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

rsotp

A Rust library for generating and verifying one-time passwords

1 unstable release

0.1.0 Apr 23, 2021

#1137 in Authentication

Download history 68/week @ 2024-11-13 22/week @ 2024-11-20 32/week @ 2024-11-27 48/week @ 2024-12-04 90/week @ 2024-12-11 57/week @ 2024-12-18 57/week @ 2024-12-25 44/week @ 2025-01-01 113/week @ 2025-01-08 60/week @ 2025-01-15 57/week @ 2025-01-22 64/week @ 2025-01-29 24/week @ 2025-02-05 56/week @ 2025-02-12 86/week @ 2025-02-19 118/week @ 2025-02-26

297 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