Versions in this module Expand all Collapse all v1 v1.0.4 Sep 8, 2023 Changes in this version + var LockDownError = errors.New("The verification is locked down, because of too many trials.") + func CalculateTOTP(otp *Totp, index int) string + type Totp struct + func NewTOTP(account, issuer string, hash crypto.Hash, digits int) (*Totp, error) + func NewTOTPWithKey(key []byte, account, issuer string, hash crypto.Hash, digits int) (*Totp, error) + func TOTPFromBytes(message []byte, issuer string) (*Totp, error) + func (otp *Totp) OTP() (string, error) + func (otp *Totp) QR() ([]byte, error) + func (otp *Totp) Secret() string + func (otp *Totp) ToBytes() ([]byte, error) + func (otp *Totp) URL() (string, error) + func (otp *Totp) Validate(userCode string) error