Documentation ¶
Index ¶
- Constants
- func GenAuthRule(label, issuer, secret, algorithm string, periodDigits ...int) string
- func GenHotp(algorithm func() hash.Hash, secret string, idx int64, digits int) (string, error)
- func GenSecret() (string, error)
- func GenTotp(algorithm func() hash.Hash, secret string, periodDigits ...int) (string, error)
Examples ¶
Constants ¶
View Source
const DIGITS = 6 // %06d
View Source
const PERIOD = 30 // 30s
Variables ¶
This section is empty.
Functions ¶
func GenAuthRule ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.