Versions in this module Expand all Collapse all v1 v1.0.0 Sep 18, 2026 Changes in this version + const DefaultDigits + const DefaultPeriod + const DefaultSkew + func BuildURL(issuer, accountName, secret string) string + func GenerateCode(secret string, t time.Time) (string, error) + func GenerateHOTP(key []byte, counter uint64) string + func GenerateRecoveryCodes(count int) ([]string, error) + func GenerateSecret() (string, error) + func GenerateSecretWithLength(numBytes int) (string, error) + func HashRecoveryCode(code string, pepper []byte) string + func NormalizeRecoveryCode(code string) string + func Validate(passcode, secret string) bool + func ValidateCustom(passcode, secret string, t time.Time, skew int) (bool, int64) + func ValidateWithStep(passcode, secret string) (bool, int64)