encrypt

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Args is a flagset that needs to be exported so that it can be written to the main program help

View Source
var Usage = `` /* 1191-byte string literal not displayed */

Usage text that will be displayed as command line help text when using the `help encrypt` command

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

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