Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Table = []string{ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "2", "3", "4", "5", "6", "7", "=", } ErrSecretLengthLss = errors.New("secret length lss 6 error") ErrSecretLength = errors.New("secret length error") ErrPaddingCharCount = errors.New("padding char count error") ErrPaddingCharLocation = errors.New("padding char Location error") ErrParam = errors.New("param error") )
Functions ¶
This section is empty.
Types ¶
type GAuth ¶
type GAuth struct {
// contains filtered or unexported fields
}
func (*GAuth) CreateSecret ¶
CreateSecret create new secret 16 characters, randomly chosen from the allowed base32 characters.
func (*GAuth) SetCodeLength ¶
SetCodeLength Set the code length, should be >=6
Click to show internal directories.
Click to hide internal directories.