blot

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

blot Go Report Card GoDoc

Library to handle byte slice obfuscation

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blot

type Blot struct {
	Methods []Method
	Data    Parameters
}

Blot represents a new Blot instance

func Import

func Import(j []byte) Blot

Import Blot configuration from JSON

func NewBlot

func NewBlot() Blot

NewBlot creates a new blot instance

func (*Blot) Add added in v1.0.1

func (b *Blot) Add(method Method)

func (*Blot) Compress

func (b *Blot) Compress() Method

func (*Blot) Decode

func (b *Blot) Decode() Method

func (*Blot) Decompress

func (b *Blot) Decompress() Method

func (*Blot) Decrypt

func (b *Blot) Decrypt() Method

func (*Blot) Encode

func (b *Blot) Encode() Method

func (*Blot) Encrypt

func (b *Blot) Encrypt() Method

func (*Blot) Export

func (b *Blot) Export() []byte

Export Blot configuration to JSON

func (*Blot) Run

func (b *Blot) Run(data []byte) []byte

Run processes data through each method in order

type Method

type Method struct {
	Method     MethodFunc
	Parameters Parameters
}

func NewMethod

func NewMethod(method MethodFunc, parameters Parameters) Method

type MethodFunc

type MethodFunc func(in []byte, parameters Parameters) []byte

MethodFunc represents a function to run against the data

type Parameters

type Parameters map[string][]byte

Jump to

Keyboard shortcuts

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