Versions in this module Expand all Collapse all v1 v1.1.0 Oct 11, 2023 Changes in this version + type Algorithm byte + const HmacSha1 + const HmacSha256 + const HmacSha512 + func (a Algorithm) String() string + type Name struct + Algorithm Algorithm + Name string + Type Type + func (n *Name) String() string + type OATH struct + Clock func() time.Time + func New() (*OATH, error) + func (o *OATH) Calculate(name string, touchRequiredCallback func(string) error) (string, error) + func (o *OATH) Close() error + func (o *OATH) Delete(name string) error + func (o *OATH) List() ([]*Name, error) + func (o *OATH) Put(name string, a Algorithm, t Type, digits uint8, key []byte, touch bool) error + func (o *OATH) Select() (*Select, error) + type Select struct + Algorithm []byte + Challenge []byte + Name []byte + Version []byte + type Type byte + const Hotp + const Totp + func (t Type) String() string Other modules containing this package cunicu.li/go-ykoath/v2