Versions in this module Expand all Collapse all v1 v1.0.1 Nov 12, 2024 Changes in this version + var Config = config + func CreateSecret() string + func GetCode(secret string, time int64) string + func GetQRCode(config QrConfig) string + func GetTime() int64 + func Verify(config VerifyConfig) bool + type Algorithm int + const AlgorithmSHA1 + const AlgorithmSHA256 + const AlgorithmSHA512 + func (a Algorithm) Hash() func() hash.Hash + func (a Algorithm) String() string + type Digits int + const DigitsEight + const DigitsSix + func (d Digits) Length() int + func (d Digits) String() string + type QrConfig struct + AccountName string + Issuer string + Secret string + type VerifyConfig struct + Code string + Secret string + Window int