Documentation
¶
Index ¶
- func CheckCode(secret string, period int64, digits int, targetCode string) bool
- func CheckGoogleCode(secret string, targetCode string) bool
- func GenerateCodeByPeriod(secret string, second int64, digits int) (string, error)
- func GenerateCodeByTime(secret string, period int64, digits int) (string, error)
- func GenerateGoogleCode(secret string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckGoogleCode ¶
func GenerateCodeByPeriod ¶
func GenerateCodeByTime ¶
otpauth://totp/Google%3Ayourname@gmail.com?secret=xxxx&issuer=Google
func GenerateGoogleCode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.