obfuscator

package
v1.6.29 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: BSD-2-Clause-Patent Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// DEFAULT_HASH_ENGINE ...
	DEFAULT_HASH_ENGINE = hash.SHA_256

	// DEFAULT_KEY_STRING ...
	DEFAULT_KEY_STRING = "8ed9dcc1701c064f0fd7ae235f15143f989920e0ee9658bb7882c8d7d5f05692" // SHA-256("crumbl by Edgewhere")

	// DEFAULT_ROUNDS ...
	DEFAULT_ROUNDS = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Obfuscator

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

Obfuscator ...

func NewObfuscator

func NewObfuscator(cipher *feistel.FPECipher) *Obfuscator

NewObfuscator ...

func (Obfuscator) Apply

func (o Obfuscator) Apply(data string) (obfuscated []byte, err error)

Apply transforms the passed string to an obfuscated byte array through a Feistel cipher

func (Obfuscator) Unapply

func (o Obfuscator) Unapply(obfuscated []byte) (deobfuscated string, err error)

Unapply transforms the passed obfuscated byte array to a deobfuscated string through a Feistel cipher

Jump to

Keyboard shortcuts

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