pgp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptWithGPG

func DecryptWithGPG(gpg string, input io.Reader, output io.Writer) error

func Encrypt

func Encrypt(input io.Reader, output io.Writer, keys []*PublicKey) error

func GetRecipientKeyIdsForEncryptedMessage

func GetRecipientKeyIdsForEncryptedMessage(input io.Reader) ([]uint64, error)

Types

type PublicKey

type PublicKey struct {
	Alias  string
	Entity *openpgp.Entity
}

func LoadASCIIArmoredPublicKey

func LoadASCIIArmoredPublicKey(alias string, input io.Reader) (PublicKey, error)

Jump to

Keyboard shortcuts

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