crypto

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2025 License: MulanPSL-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 AESEncryptor

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

func NewAESEncryptor

func NewAESEncryptor(keyString string) (*AESEncryptor, error)

func (*AESEncryptor) Decrypt

func (a *AESEncryptor) Decrypt(encryptedData []byte) ([]byte, error)

func (*AESEncryptor) Encrypt

func (a *AESEncryptor) Encrypt(data []byte) ([]byte, error)

func (*AESEncryptor) GetKeyBase64

func (a *AESEncryptor) GetKeyBase64() string

func (*AESEncryptor) GetKeyString

func (a *AESEncryptor) GetKeyString() string

func (*AESEncryptor) ValidateKey

func (a *AESEncryptor) ValidateKey(keyString string) bool

Validate key matches

Jump to

Keyboard shortcuts

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