createkey

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

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

func CreateKey(args []string) error

CreateKey takes two arguments, a base filename, and optionally an output directory specified with `-outdir`.

func GenerateKeyPair

func GenerateKeyPair(basename, password string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL