Versions in this module Expand all Collapse all v1 v1.4.2 Feb 27, 2025 Changes in this version type Algorithm + const AlgorithmSM3 + type Encoder string + const EncoderDefault + const EncoderSteam type Key + func (k *Key) Algorithm() Algorithm + func (k *Key) Digits() Digits + func (k *Key) Encoder() Encoder + func (k *Key) Period() uint64 v1.1.0 Aug 13, 2018 Changes in this version type Key + func (k *Key) URL() string v1.0.0 Aug 7, 2017 Changes in this version + var ErrGenerateMissingAccountName = errors.New("AccountName must be set") + var ErrGenerateMissingIssuer = errors.New("Issuer must be set") + var ErrValidateInputInvalidLength = errors.New("Input length unexpected") + var ErrValidateSecretInvalidBase32 = errors.New("Decoding of secret as base32 failed.") + type Algorithm int + const AlgorithmMD5 + const AlgorithmSHA1 + const AlgorithmSHA256 + const AlgorithmSHA512 + func (a Algorithm) Hash() hash.Hash + func (a Algorithm) String() string + type Digits int + const DigitsEight + const DigitsSix + func (d Digits) Format(in int32) string + func (d Digits) Length() int + func (d Digits) String() string + type Key struct + func NewKeyFromURL(orig string) (*Key, error) + func (k *Key) AccountName() string + func (k *Key) Image(width int, height int) (image.Image, error) + func (k *Key) Issuer() string + func (k *Key) Secret() string + func (k *Key) String() string + func (k *Key) Type() string