otp2 0.0.1

Provides both HOTP and TOTP implementations of one-time passcodes
Documentation

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.