Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidScheme is error that scheme is not "otpauth". ErrInvalidScheme = errors.New("invalid scheme") // ErrInvalidOTPType is error that specified otp type is not supported. ErrInvalidOTPType = errors.New("invalid otp type") // ErrEmptySecret is error that secret is empty. ErrEmptySecret = errors.New("secret param is required") // ErrInvalidAlgorithm is error that specified algorithm is not supported. ErrInvalidAlgorithm = errors.New("invalid algorithm") // ErrEmptyCounter is error that counter is empty. ErrEmptyCounter = errors.New("counter param is required for HOTP") )
Functions ¶
This section is empty.
Types ¶
type HOTP ¶
type HOTP struct {
// contains filtered or unexported fields
}
HOTP represents HMAC-based One Time Password.
type KeyURI ¶
type KeyURI struct {
// contains filtered or unexported fields
}
KeyURI represents OTP configurations.
func ParseKeyURI ¶
ParseKeyURI parses key uri formatted string. Key Uri Format: https://github.com/google/google-authenticator/wiki/Key-Uri-Format
Click to show internal directories.
Click to hide internal directories.