Documentation
¶
Index ¶
- Constants
- Variables
- func Deobfuscate(in []byte) (out []byte, err error)
- func DeobfuscateWithMask(in []byte, hi, lo byte) (out []byte, err error)
- func NewBlob(in []byte, mask_hi, mask_lo byte, prefixlen int) (out []byte, err error)
- func Obfuscate(in []byte) (out []byte, err error)
- func ObfuscateWithMask(in []byte, hi, lo byte) (out []byte, err error)
- func OpenBlob(in []byte, mask_hi, mask_lo byte, prefixlen int) (out []byte, err error)
- type Error
Constants ¶
View Source
const ( ErrInvalidInput = Error("invalid input") ErrUnexpected = Error("unexpected error") ErrCrypto = Error("crypto error") )
View Source
const ( HighNibble = 1 LowNibble = 0 )
Variables ¶
View Source
var ( MaskDefault = [...]byte{0x55, 0x55} MaskHalfFlaH = [...]byte{0xf0, 0x0f} MaskFlahHalf = [...]byte{0x0f, 0xf0} )
I NEED TO DEFINE MASKs as a pair of byte constants..
Functions ¶
func Deobfuscate ¶
func DeobfuscateWithMask ¶ added in v0.2.0
can process it with any number of bytes
func NewBlob ¶ added in v0.2.0
this just an obfuscation mechanism to hide "structure" in a flow of bytes with an overhead, it is NOT in ANY WAY a way to SECURE DATA, it is a simple obfuscation.
func ObfuscateWithMask ¶ added in v0.2.0
Types ¶
Click to show internal directories.
Click to hide internal directories.