#hotp #totp

otp2

Provides both HOTP and TOTP implementations of one-time passcodes

1 unstable release

0.0.1 Jul 5, 2023

#26 in #hotp

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.9–2.6MB
~57K SLoC