#hotp #totp #otp

otp2

Provides both HOTP and TOTP implementations of one-time passcodes

1 unstable release

0.0.1 Jul 5, 2023

#28 in #hotp

21 downloads per month

MIT license

11KB
213 lines

HMAC-based one-time passcodes

Provides implementations for both IETF RFCs:

  • 4226: simple incrementing counter (HOTP)
  • 6238: time-based counter (TOTP)

Custom HMAC-based one-time passcodes can be provided by types implementing the ToBytes trait.

Dependencies

~1.5–2.2MB
~51K SLoC