Versions in this module Expand all Collapse all v0 v0.0.1 May 27, 2023 Changes in this version + func GenerateTOTP(opts Opts) (code string) + func GenerateTOTPFromOTPAuth(otpAuth string, timestamp string) (label string, code string, err error) + type Algo int + const Invalid + const SHA1 + const SHA256 + const SHA512 + type Opts struct + Algorithm Algo + CurrentUnixTime uint64 + Digits uint + Secret []byte + Timestep uint + func (o Opts) Algo() func() hash.Hash