Documentation ¶ Index ¶ func RandomInt(max int) int type Config type GPG func New(id string, config Config) *GPG func (g *GPG) Args() []string func (g *GPG) Binary() string func (g *GPG) Decrypt(ciphertext []byte) ([]byte, error) func (g *GPG) Encrypt(plaintext []byte) ([]byte, error) func (g *GPG) ID() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func RandomInt ¶ func RandomInt(max int) int Types ¶ type Config ¶ type Config struct { BinaryPath string Args []string } type GPG ¶ type GPG struct { // contains filtered or unexported fields } func New ¶ func New(id string, config Config) *GPG func (*GPG) Args ¶ func (g *GPG) Args() []string func (*GPG) Binary ¶ func (g *GPG) Binary() string func (*GPG) Decrypt ¶ func (g *GPG) Decrypt(ciphertext []byte) ([]byte, error) func (*GPG) Encrypt ¶ func (g *GPG) Encrypt(plaintext []byte) ([]byte, error) func (*GPG) ID ¶ func (g *GPG) ID() string Source Files ¶ View all Source files decrypt.go encrypt.go gpg.go rand.go Click to show internal directories. Click to hide internal directories.