Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OTPKey ¶
type OTPKey struct { Issuer string `json:"issuer"` Label string `json:"label"` Digits otp.Digits DigitsInt int `json:"digits"` OTPType string `json:"type"` Algorithm otp.Algorithm AlgorithmStr string `json:"algorithm"` Period int `json:"period"` Tags []string `json:"tags"` // Will always be empty if OTPKeysFromJSON() was used Secret string `json:"secret"` // contains filtered or unexported fields }
OTPKey holds the structure of a single OTP key from backup
func OTPKeysFromJSON ¶
OTPKeysFromJSON parses OTP keys from andOTP JSON backup
func (*OTPKey) GenerateCode ¶
GenerateCode generates an OTP token
Click to show internal directories.
Click to hide internal directories.