smuggle

package
v0.0.0-...-48e72f7 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESCBCEncrypt

func AESCBCEncrypt(key, plainbytes []byte) ([]byte, error)

Encrypt and Decrypt

func GenKey

func GenKey(Size int) ([]byte, error)

func GetBytes

func GetBytes(input string) []byte

func NewSmuggler

func NewSmuggler(input, funcname string, Debug, tinygo bool)

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

Crypto padding

func PrintTemplateStr

func PrintTemplateStr(Data, tmplstr string)

func RandInt

func RandInt(min int, max int) (int, error)

func Sum256

func Sum256(msg []byte) ([]byte, error)

Types

type Smuggler

type Smuggler struct {

	// Main Components
	FunctionName string
	OutputFile   string
	//AES Components
	Key    []byte
	Buf    []byte
	EncBuf []byte
	KeyStr string
	BufStr string
}

func (*Smuggler) AESEncrypt

func (s *Smuggler) AESEncrypt() (string, error)

func (*Smuggler) NewAESKey

func (s *Smuggler) NewAESKey() ([]byte, error)

Generate an AES Key for use with encryption/decryption.

Jump to

Keyboard shortcuts

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