pgp

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Entity *openpgp.Entity
}

Client can be used to execute ciphering actions

func NewClient

func NewClient(config *Config) (*Client, error)

NewClient reads PGP key values and return a entity through a client object

func (*Client) Cipher

func (c *Client) Cipher(value string) (string, error)

Cipher a value using a Public pgp key

func (*Client) Decipher

func (c *Client) Decipher(value string) (string, error)

Decipher a value using a Public and Private pgp keypair

type Config

type Config struct {
	PublicKeyPath  string
	PrivateKeyPath string
}

Config handles necessary information for PGP

Jump to

Keyboard shortcuts

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