pgp

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: GPL-3.0 Imports: 19 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 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