encryptor

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encryptor

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

func New

func New(aesPassword string, xorPassword string) *Encryptor

func (*Encryptor) AesDecrypt

func (e *Encryptor) AesDecrypt(data []byte) int

func (*Encryptor) AesEncrypt

func (e *Encryptor) AesEncrypt(data []byte) error

func (*Encryptor) AesGetPadding

func (e *Encryptor) AesGetPadding(dataLen int) []byte

func (*Encryptor) SetAesKey

func (e *Encryptor) SetAesKey(password string)

func (*Encryptor) SetXorKey

func (e *Encryptor) SetXorKey(password string)

func (*Encryptor) XorDecrypt

func (e *Encryptor) XorDecrypt(data []byte)

func (*Encryptor) XorEncrypt

func (e *Encryptor) XorEncrypt(data []byte)

Jump to

Keyboard shortcuts

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