Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TOTP ¶
type TOTP interface { // Generate generates new OTP secret Generate() string // GenerateURI generates uri from secret GenerateURI(secret string, user string) string // GenerateURIWithIssuer generates uri with issuer GenerateURIWithIssuer(secret string, user string, issuer string) string // Verify verifies password Verify(secret string, password string) bool }
TOTP is a Time-based One-time Password service
func NewWithIssuer ¶
NewWithIssuer creates new TOTP service with default issuer
Click to show internal directories.
Click to hide internal directories.