cryptoHelper

package
v0.0.0-...-57b71eb Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertext []byte, password []byte, packetConfig *packet.Config) (plaintext []byte, err error)

func DecryptBase64

func DecryptBase64(enc string, privateKey string, passphrase string) ([]byte, error)

func DecryptBytes

func DecryptBytes(encBytes []byte, privKeyringFile string, passphrase string) ([]byte, error)

func DecryptBytesWithIoReader

func DecryptBytesWithIoReader(encBytes []byte, keyringFileBuffer io.Reader, passphrase string) ([]byte, error)

func Encrypt

func Encrypt(plaintext []byte, password []byte, packetConfig *packet.Config) (ciphertext []byte, err error)

func EncryptBytes

func EncryptBytes(origBytes []byte, pubKeyringFile string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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