Versions in this module Expand all Collapse all v0 v0.1.1 May 1, 2023 v0.1.0 Apr 27, 2023 Changes in this version + type HOTP interface + Generate func(digitCount uint8) uint32 + Generate4 func() uint32 + Generate6 func() uint32 + Generate8 func() uint32 + GenerateString func(digitCount uint8) string + GenerateString4 func() string + GenerateString6 func() string + GenerateString8 func() string + SetCounter func(uint64) + func NewHOTP(secret []byte, algorithm crypto.Hash) HOTP + func NewHOTPBase32(base32Secret string, algorithm crypto.Hash) (HOTP, error) + type TOTP interface + Generate func(digitCount uint8) (uint32, int) + Generate4 func() (uint32, int) + Generate6 func() (uint32, int) + Generate8 func() (uint32, int) + GenerateString func(digitCount uint8) (string, int) + GenerateString4 func() (string, int) + GenerateString6 func() (string, int) + GenerateString8 func() (string, int) + Interval func() uint32 + SetInterval func(uint32) + func NewTOTP(secret []byte, algorithm crypto.Hash) TOTP + func NewTOTPBase32(base32Secret string, algorithm crypto.Hash) (TOTP, error)