encryption

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: AGPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(
	src io.Reader,
	encryptionFormat string,
	identity interface{},
) (io.ReadCloser, error)

func DecryptHeader

func DecryptHeader(
	hdr *tar.Header,
	encryptionFormat string,
	identity interface{},
) error

func DecryptString

func DecryptString(
	src string,
	encryptionFormat string,
	identity interface{},
) (string, error)

func Encrypt

func Encrypt(
	dst io.Writer,
	encryptionFormat string,
	recipient interface{},
) (io.WriteCloser, error)

func EncryptHeader

func EncryptHeader(
	hdr *tar.Header,
	encryptionFormat string,
	recipient interface{},
) error

func EncryptString

func EncryptString(
	src string,
	encryptionFormat string,
	recipient interface{},
) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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