Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OtpParameter ¶
type OtpParameter interface { Data() OtpParameterData Bytes() []byte }
type OtpParameterData ¶
type OtpParameterData struct { Secret []byte Name string Issuer string Algorithm func() hash.Hash AlgorithmName string Digits int Type OtpParameterType Counter uint64 }
func (OtpParameterData) Generate ¶
func (op OtpParameterData) Generate() (string, error)
type OtpParameterType ¶
Click to show internal directories.
Click to hide internal directories.