sc_obfuscate

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorStorageNotFound = errors.New("storage not found")
)

Functions

func Deobfuscate

func Deobfuscate(l esl.Logger, key, b []byte) (d []byte, err error)

func Obfuscate

func Obfuscate(l esl.Logger, key, d []byte) (b []byte, err error)

Types

type Storage

type Storage interface {
	// Put the value into the path. The `v` should be serializable to JSON format.
	Put(path string, v interface{}) error

	// Retrieve the value from the path.
	Get(path string, v interface{}) error
}

func NewStorage

func NewStorage(c app_control.Control) Storage

Jump to

Keyboard shortcuts

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