Crate otp2

source ·
Expand description

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.

Structs

  • One-time passcodes.

Enums

Traits

  • Trait used to provide bytes as input to the HMAC algorithm.

Type Definitions