encrypt

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyPublicKeyFileList added in v0.2.1

func EmptyPublicKeyFileList()

EmptyPublicKeyFileList cleans the publicKeyFileList main use case is in unit tests when files are to be encrypted with different keys in different invocations

func Encrypt

func Encrypt(args []string) error

Encrypt takes a set of arguments, parses them, and attempts to encrypt the given data files with the given public key file

func SetFlags added in v0.3.1

func SetFlags(key string, value string)

Needed for testing: used when calling encrypt from the decrypt package in decrypt_test.go

Types

type FileStream added in v0.2.0

type FileStream struct {
	EncryptedMD5      hash.Hash
	EncryptedSha256   hash.Hash
	Reader            io.ReadCloser
	UnencryptedMD5    hash.Hash
	UnencryptedSha256 hash.Hash
}

func Stream added in v0.2.0

func Stream(file *os.File, pubKeyList [][32]byte) (FileStream, error)

Jump to

Keyboard shortcuts

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