Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct { TimeStep uint64 // X in RFC6238 StartTime int64 // T0 in RFC6238, default 0 is OK Secret string // shared secret for generate hotp Digit int }
Generator generates Time-based One-Time Password
func (Generator) GenerateString ¶
GenerateString generates string OTP.
Click to show internal directories.
Click to hide internal directories.