Documentation ¶
Index ¶
- type GPGEncrypt
- func (g *GPGEncrypt) EncryptFile(pathPlain string, pathCrypt string, sEmail string) error
- func (g *GPGEncrypt) EncryptStringToFile(plaintext string, sPath string, sEmail string) error
- func (g *GPGEncrypt) GetKeyByEmail(keyring openpgp.EntityList, email string) *openpgp.Entity
- func (g *GPGEncrypt) LoadPublicKeyRing() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GPGEncrypt ¶ added in v0.47.0
type GPGEncrypt struct { PublicKeyringPath string // contains filtered or unexported fields }
func NewGPGEncrypt ¶ added in v0.47.0
func NewGPGEncrypt(sPublicKeyringPath string) (GPGEncrypt, error)
func (*GPGEncrypt) EncryptFile ¶ added in v0.47.0
func (g *GPGEncrypt) EncryptFile(pathPlain string, pathCrypt string, sEmail string) error
func (*GPGEncrypt) EncryptStringToFile ¶ added in v0.47.0
func (g *GPGEncrypt) EncryptStringToFile(plaintext string, sPath string, sEmail string) error
func (*GPGEncrypt) GetKeyByEmail ¶ added in v0.47.0
func (g *GPGEncrypt) GetKeyByEmail(keyring openpgp.EntityList, email string) *openpgp.Entity
func (*GPGEncrypt) LoadPublicKeyRing ¶ added in v0.47.0
func (g *GPGEncrypt) LoadPublicKeyRing() error
Click to show internal directories.
Click to hide internal directories.