gpgx

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(cipherArmored []byte, keys openpgp.EntityList) ([]byte, error)

func Encrypt

func Encrypt(msg []byte, pubkeys openpgp.EntityList) ([]byte, error)

func ReadArmoredKeyFile

func ReadArmoredKeyFile(path string) (openpgp.EntityList, error)

ReadArmoredKeyFile attempts to read the filepath and parses an armored GPG key

func ReadPrivateKeyFile

func ReadPrivateKeyFile(path string, password []byte) (openpgp.EntityList, error)

ReadPrivateKeyFile attempts to read the filepath and parses an armored GPG private key

func Sign

func Sign(message []byte, pubKey openpgp.EntityList) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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