Documentation ¶
Overview ¶
Package secret provides functions for interacting with the macOS keychain API in a simplified manner.
Index ¶
- func Delete(name, user string) error
- func Exist(name, user string) (bool, error)
- func Generate(length int, digits int, symbols int, noUpperCase bool, noRepeats bool) (string, error)
- func Get(name, user string) (string, error)
- func List(user string) ([]string, error)
- func Set(name, user, pass string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(length int, digits int, symbols int, noUpperCase bool, noRepeats bool) (string, error)
Generate a random string of length characters. The number of digits and the number of symbols will be used to determine the number of each character type in the final string. If noUpperCase is true, then only lower case letters will be used in the string. If noRepeats is true, then each character will only be used once in the string. To generate a secret without numbers or symbols set them to 0.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.