Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HOTP ¶
type HOTP interface { // Set counter SetCounter(uint64) // Generate an HOTP password Generate(digitCount uint8) uint32 // Generate an HOTP password as a string GenerateString(digitCount uint8) string // Generate a 4-digit HOTP password Generate4() uint32 // Generate a 4-digit HOTP password as a string GenerateString4() string // Generate a 6-digit HOTP password Generate6() uint32 // Generate a 6-digit HOTP password as a string GenerateString6() string // Generate an 8-digit HOTP password Generate8() uint32 // Generate an 8-digit HOTP password as a string GenerateString8() string }
HOTP interface
type TOTP ¶
type TOTP interface { // Get interval Interval() uint32 // Set interval SetInterval(uint32) // Generate a TOTP password Generate(digitCount uint8) (uint32, int) // Generate a TOTP password as a string GenerateString(digitCount uint8) (string, int) // Generate a 4-digit HOTP password Generate4() (uint32, int) // Generate a 4-digit HOTP password as a string GenerateString4() (string, int) // Generate a 6-digit HOTP password Generate6() (uint32, int) // Generate a 6-digit HOTP password as a string GenerateString6() (string, int) // Generate an 8-digit HOTP password Generate8() (uint32, int) // Generate an 8-digit HOTP password as a string GenerateString8() (string, int) }
TOTP interface
Click to show internal directories.
Click to hide internal directories.