encrypt

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: AGPL-3.0 Imports: 22 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 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