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 ¶
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
Click to show internal directories.
Click to hide internal directories.