aes

package
v10.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Define aes secret key 2^5
	SecretKey = []byte("2985BCFDB5FE43129843DB59825F8647")
)

Functions

func Decrypt

func Decrypt(crypted, key []byte) ([]byte, error)

func DecryptFromBase64

func DecryptFromBase64(data string, key []byte) ([]byte, error)

func Encrypt

func Encrypt(origData, key []byte) ([]byte, error)

func EncryptToBase64

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

func PKCS5Padding

func PKCS5Padding(plaintext []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