pgp

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

* Arc - Copyleft of Simone 'evilsocket' Margaritelli. * evilsocket at protonmail dot com * https://www.evilsocket.net/ * * See LICENSE.

* Arc - Copyleft of Simone 'evilsocket' Margaritelli. * evilsocket at protonmail dot com * https://www.evilsocket.net/ * * See LICENSE.

* Arc - Copyleft of Simone 'evilsocket' Margaritelli. * evilsocket at protonmail dot com * https://www.evilsocket.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 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