utils

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEntity

func CreateEntity(name, email string) (*openpgp.Entity, error)

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

func Includes

func Includes(haystack []string, needle string) bool

func PrintPrivateKey

func PrintPrivateKey(entity *openpgp.Entity, filename string) error

func PrintPublicKey

func PrintPublicKey(entity *openpgp.Entity, filename string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL