crypto

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 3 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 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()
}

Jump to

Keyboard shortcuts

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