Documentation
¶
Index ¶
- func Decrypt(text []byte, password []byte) (decryptedText []byte, err error)
- func Encrypt(text []byte, password []byte) (encryptedText []byte, err error)
- func FormatUnixTime(ts int64) string
- func GeneratePassword(length int) (string, error)
- func GetAnswer(prompt string, defaultYes bool) bool
- func GetInput(prompt string) (string, error)
- func GetPasswordInput(prompt string) ([]byte, error)
- func PrettyPrint(v interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
decrypt uses PGP to decrypt symmetrically encrypted and armored text with the provided password.
func FormatUnixTime ¶
func GeneratePassword ¶
GeneratePassword generates a password.
func GetPasswordInput ¶
func PrettyPrint ¶
func PrettyPrint(v interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.