cryptor

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cryptor

type Cryptor interface {
	// Encrypt source file and write encrypted content to destination file.
	Encrypt(ctx context.Context, sourceFile, destinationFile string) error
	// Decrypt source file and write decrypted content to destination file.
	Decrypt(ctx context.Context, sourceFile, destinationFile string) error
}

Cryptor provides sub-system to encrypt and decrypt files (backup mostly). Files are managed outside of cryptor. Implementations may not care about removal or creation of the provided files. Implementation must expect, that files could be large (bigger then RAM).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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