Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenPGP ¶
type OpenPGP struct { // If your key doesn't have a pass phrase, leave it empty. PassPhrase string `json:"pass_phrase"` // A reader to the private key file. // If not set then decryption will not be possible. PrivateKey io.Reader // Will read the private key from a file if set. PrivateKeyPath string `json:"private_key"` // A reader to the public key file. // If not set then encryption will not be possible. PublicKey io.Reader // Will read the public key from a file if set. PublicKeyPath string `json:"public_key"` // contains filtered or unexported fields }
OpenPGP Encrypt and Decrypt with a key pair. The file gen.sh in the child directory 'openpgp' gives an example on how to generate a PGP key pair.
Click to show internal directories.
Click to hide internal directories.