Documentation
¶
Index ¶
- type OTP
- func (o *OTP) GenerateHOTP(secret string, counter uint64) (string, error)
- func (o *OTP) GenerateTOTP(secret string, delta int64) (string, error)
- func (o *OTP) NewSecret(size int) (string, error)
- func (o *OTP) UrlHOTP(secret, account, issuer string, counter uint64) string
- func (o *OTP) UrlTOTP(secret, account, issuer string) string
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *OTP)
func OptCode6Digits ¶
func OptCode6Digits() Option
func OptCode8Digits ¶
func OptCode8Digits() Option
func OptHashSHA1 ¶
func OptHashSHA1() Option
func OptHashSHA256 ¶
func OptHashSHA256() Option
func OptHashSHA512 ¶
func OptHashSHA512() Option
Click to show internal directories.
Click to hide internal directories.