Versions in this module Expand all Collapse all v1 v1.0.3 Jun 28, 2022 v1.0.2 Jun 28, 2022 Changes in this version type Totp + func (otp *Totp) Secret() string v1.0.0 Apr 24, 2016 Changes in this version + var LockDownError = errors.New("The verification is locked down, because of too many trials.") + type Totp struct + func NewTOTP(account, issuer string, hash crypto.Hash, digits int) (*Totp, error) + func TOTPFromBytes(encryptedMessage []byte, issuer string) (*Totp, error) + func (otp *Totp) OTP() (string, error) + func (otp *Totp) QR() ([]byte, error) + func (otp *Totp) ToBytes() ([]byte, error) + func (otp *Totp) Validate(userCode string) error