crypto

package
v0.0.0-...-9b09fdb Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AESCrypo

type AESCrypo struct {
	// contains filtered or unexported fields
}

func (*AESCrypo) Decrypt

func (crypter *AESCrypo) Decrypt(path string) (outErr error)

func (*AESCrypo) Encrypt

func (crypter *AESCrypo) Encrypt(path string) (outErr error)

type Crypto

type Crypto interface {
	Encrypt(file string) error
	Decrypt(file string) error
}

func LoadFromConfig

func LoadFromConfig(data map[string]string) (Crypto, error)

Jump to

Keyboard shortcuts

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