#totp #hotp #graphics #gamedev #algorithm

otp-simple

A simple implementation of the TOTP and HOTP algorithms

1 unstable release

0.1.0 Oct 8, 2022

#939 in Authentication

MIT/Apache

10KB
206 lines

otp-simple

A simple implementation of the TOTP and HOTP algorithms.


lib.rs:

A simple implementation of the TOTP and HOTP algorithms.

Note: Most functions in this crate will require a hash function to be specified via a type parameter. It is recommended to specify SHA-1 for maximum compatibility, but many clients also support using SHA-256 and SHA-512.

Dependencies

~0.3–1MB
~17K SLoC