Documentation
¶
Index ¶
- Variables
- func DecryptMessage(key []byte, message string) (string, error)
- func EncryptMessage(key []byte, message string) (string, error)
- func ErrorAndExit(err error)
- func GeneratePassphrase() (string, error)
- func ReadAll(file *zip.File) []byte
- func ScreenClear()
- func WaitForEnter()
- func WriteBinaryFileToDisk(path string, content []byte) error
- func WriteFileToDisk(path string, content string) error
- type KeysFile
Constants ¶
This section is empty.
Variables ¶
View Source
var OptionsDecrypt struct { Archive string `short:"a" long:"archive" required:"yes" description:"Path to the encrypted archive"` }
View Source
var OptionsEncrypt struct { Keyfile string `short:"k" long:"keyfile" required:"yes" description:"Path to the keyfile required for encryption"` File string `short:"f" long:"file" required:"yes" description:"File to encrypt"` }
View Source
var OptionsGenerate struct { Output string `short:"o" long:"output" required:"yes" description:"Filename for the new key pair"` Minimum int `short:"m" long:"min" required:"yes" description:"Minimum of shares needed to retrieve the private key"` Total int `short:"t" long:"total" required:"yes" description:"Total number of secret shares, has to be higher than minimum"` }
Functions ¶
func ErrorAndExit ¶
func ErrorAndExit(err error)
func GeneratePassphrase ¶
func ScreenClear ¶
func ScreenClear()
func WaitForEnter ¶
func WaitForEnter()
func WriteBinaryFileToDisk ¶
func WriteFileToDisk ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.