Documentation ¶
Index ¶
- func GenRandomToken(totp int64) string
- func GenTotpToken(secret string) (string, error)
- func GetTotpToken(secret string) string
- func HOTP(h func() hash.Hash, key []byte, count uint64, digits int) (string, error)
- func TOTP(h func() hash.Hash, secret []byte, t time.Time, interval int, digits int) (string, error)
- func VerifyTotpToken(secret string, token string) (ok bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifyTotpToken ¶
VerifyTotpToken 验证token
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.