Documentation ¶
Index ¶
- Constants
- Variables
- func ParseIdentity(identity string) (name, comment, email string, err error)
- type PGP
- func (obj *PGP) Decrypt(encString string) (string, error)
- func (obj *PGP) Encrypt(to *openpgp.Entity, msg string) (string, error)
- func (obj *PGP) EncryptMsg(to *openpgp.Entity, msg string) (*bytes.Buffer, error)
- func (obj *PGP) GetIdentities() (string, error)
- func (obj *PGP) SaveKey(path string) error
- func (obj *PGP) WriteFile(path string, buff *bytes.Buffer) error
Constants ¶
View Source
const DefaultKeyringFile = "keyring.pgp"
DefaultKeyringFile is the default file name for keyrings.
Variables ¶
View Source
var CONFIG packet.Config
CONFIG set default Hash.
Functions ¶
func ParseIdentity ¶
ParseIdentity parses an identity into name, comment and email components.
Types ¶
type PGP ¶
PGP contains base entity.
func (*PGP) EncryptMsg ¶
EncryptMsg encrypts the message.
func (*PGP) GetIdentities ¶
GetIdentities return the first identities from current object.
Click to show internal directories.
Click to hide internal directories.