Documentation
¶
Index ¶
- func CreateEntity(name, email string) (*openpgp.Entity, error)
- func Decrypt(encoded string, entityList openpgp.EntityList) (string, error)
- func Encrypt(secret string, entityList openpgp.EntityList) (string, error)
- func GetEntityList(keys []string, passphrase string) (openpgp.EntityList, error)
- func Includes(haystack []string, needle string) bool
- func PrintPrivateKey(entity *openpgp.Entity, filename string) error
- func PrintPublicKey(entity *openpgp.Entity, filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
func Decrypt(encoded string, entityList openpgp.EntityList) (string, error)
Decrypts the base64-encoded string end decrypts with the private key.
func Encrypt ¶
func Encrypt(secret string, entityList openpgp.EntityList) (string, error)
Encrypts secret with all public keys and base64-encodes the result.
func GetEntityList ¶
func GetEntityList(keys []string, passphrase string) (openpgp.EntityList, error)
Assembles entity list from keys in given files
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.