crypto

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(s string) string

func DecryptFromFile

func DecryptFromFile(path string) string

func Destruct

func Destruct()

func InitPassKeyDecipher added in v1.3.0

func InitPassKeyDecipher()

func Initialize

func Initialize(conf string)

func SetDecipher

func SetDecipher(d Decipher)

func SetLogger

func SetLogger(lg *zap.Logger)

Types

type Decipher

type Decipher interface {
	Initialize(string)
	Decrypt(string) (string, error)
	Destruct()
}

type PassKeyDecipher added in v1.3.0

type PassKeyDecipher struct {
	Decipher
	// contains filtered or unexported fields
}

func (*PassKeyDecipher) Decrypt added in v1.3.0

func (d *PassKeyDecipher) Decrypt(file string) (string, error)

func (*PassKeyDecipher) Initialize added in v1.3.0

func (d *PassKeyDecipher) Initialize(command string)

Jump to

Keyboard shortcuts

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