symmetric

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Symmetric

type Symmetric struct {
	Key string
}

Symmetric encryption based on shared key. Implementation uses openssl binary with pbkdf2 and aes256 algorithm.

func (*Symmetric) Decrypt

func (sc *Symmetric) Decrypt(ctx context.Context, encryptedFile, decryptedFile string) error

func (*Symmetric) Encrypt

func (sc *Symmetric) Encrypt(ctx context.Context, decryptedFile, encryptedFile string) error

Jump to

Keyboard shortcuts

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