gpgx

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 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 ReadArmoredKey

func ReadArmoredKey(data io.Reader) (openpgp.EntityList, error)

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

func ReadArmoredKeyFile

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

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

func ReadPrivateKey

func ReadPrivateKey(data io.Reader, password []byte) (openpgp.EntityList, error)

ReadPrivateKey attempts to read the filepath and parses an armored GPG private 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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