pgp

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

* Cryptexly - Copyleft of Xavier D. Johnson. * me at xavierdjohnson dot com * http://www.xavierdjohnson.net/ * * See LICENSE.

* Cryptexly - Copyleft of Xavier D. Johnson. * me at xavierdjohnson dot com * http://www.xavierdjohnson.net/ * * See LICENSE.

* Cryptexly - Copyleft of Xavier D. Johnson. * me at xavierdjohnson dot com * http://www.xavierdjohnson.net/ * * See LICENSE.

Index

Constants

View Source
const RSA_BITS = 4096

Variables

View Source
var (
	// Server private key.
	PrivateKey = (*packet.PrivateKey)(nil)
	// Recipient public key.
	PublicKey = (*packet.PublicKey)(nil)
)

Functions

func Encrypt

func Encrypt(message string) (err error, ciphertext string)

func EncryptStream

func EncryptStream(r io.Reader, w io.Writer) error

func GenerateKeys

func GenerateKeys(private, public string) error

func LoadKey

func LoadKey(filename string, private bool) error

func SaveKey

func SaveKey(out io.Writer, key *rsa.PrivateKey, private bool) (err error)

func Setup

func Setup(pgp *config.PGPConfig) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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