gpgutil

package
v0.30.11 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GpgEncrypt

type GpgEncrypt struct {
	PublicKeyringPath string
	// contains filtered or unexported fields
}

func NewGpgEncrypt

func NewGpgEncrypt(sPublicKeyringPath string) (GpgEncrypt, error)

func (*GpgEncrypt) EncryptFile

func (g *GpgEncrypt) EncryptFile(pathPlain string, pathCrypt string, sEmail string) error

func (*GpgEncrypt) EncryptStringToFile

func (g *GpgEncrypt) EncryptStringToFile(plaintext string, sPath string, sEmail string) error

func (*GpgEncrypt) GetKeyByEmail

func (g *GpgEncrypt) GetKeyByEmail(keyring openpgp.EntityList, email string) *openpgp.Entity

func (*GpgEncrypt) LoadPublicKeyRing

func (g *GpgEncrypt) LoadPublicKeyRing() error

Jump to

Keyboard shortcuts

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