Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ArgHelp = `
[name]
The basename of the keyfiles to generate.`
ArgHelp is the suffix text that will be displayed after the argument list in the module help.
View Source
var Args = flag.NewFlagSet("createKey", flag.ExitOnError)
Args is a flagset that needs to be exported so that it can be written to the main program help
View Source
var Usage = `` /* 356-byte string literal not displayed */
Usage text that will be displayed as command line help text when using the `help encrypt` command
Functions ¶
func CreateKey ¶
CreateKey takes two arguments, a base filename, and optionally an output directory specified with `-outdir`.
func GenerateKeyPair ¶
GenerateKeyPair generates a crypt4gh key pair and saves it to the `<basename>.pub.pem` and `<basename>.sec.pem` files. If any of the files already exists, the function will instead return an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.