Documentation ¶
Index ¶
- func AddAccount(name, username, email, secret string) error
- func ConfirmPrompt(message string) bool
- func CopyToClipboard(text string)
- func CopyToClipboardWithBinding(text binding.String)
- func Decrypt(key, data []byte) ([]byte, error)
- func Encrypt(key, data []byte) ([]byte, error)
- func GenTips() string
- func GenerateID() string
- func GetConfig() string
- func GetHOTPToken(secret string, interval int64) string
- func GetTOTPToken(secret string) string
- func IsBase32(str string) bool
- func PanicIf(err error)
- func ReadAccounts(configFile string) ([]models.Account, error)
- func RemoveAccount(id string)
- func SaveAccounts(accounts []models.Account, configFile string) error
- func VerifyKey(key, data []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAccount ¶
AddAccount add new account to the db
func ConfirmPrompt ¶
ConfirmPrompt will prompt to user for yes or no
func CopyToClipboard ¶
func CopyToClipboard(text string)
Copy to clipboard function for Linux, Windows, MacOS
func CopyToClipboardWithBinding ¶
Copy to clipboard function for Linux, Windows, MacOS
func GetHOTPToken ¶
GetHOTPToken returns the HOTP token
func ReadAccounts ¶
ReadAccounts decrypt all accounts
func SaveAccounts ¶
SaveAccounts save all accounts
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.