encryption

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package encryption source https://github.com/spotlight21c/aesencryptor

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt added in v1.3.2

func AesDecrypt(encrypted, key []byte) ([]byte, error)

AesDecrypt 兼容js的CryptoJS的AES

func AesEncrypt added in v1.3.2

func AesEncrypt(origData, key []byte) (string, error)

AesEncrypt 兼容js的CryptoJS的AES

func DecryptAES

func DecryptAES(encrypted, key []byte) ([]byte, error)

func EncryptAES

func EncryptAES(src, key []byte) ([]byte, error)

func NewECBDecrypter

func NewECBDecrypter(b cipher.Block) cipher.BlockMode

NewECBDecrypter returns a BlockMode which decrypts in electronic code book mode, using the given Block.

func NewECBEncrypter

func NewECBEncrypter(b cipher.Block) cipher.BlockMode

NewECBEncrypter returns a BlockMode which encrypts in electronic code book mode, using the given Block.

func PKCS5Padding

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

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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