aes

package
v0.0.0-...-5c98b36 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MulanPSL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IV = []byte(`B5I3NRGdhgeduXUj`)

IV 初始化向量,对数据执行加密转换

Functions

func DecryptCBC

func DecryptCBC(cipherText []byte, key []byte) ([]byte, error)

EncryptCBC 解密,使用CBC模式 key长度必须是 16/24/32

func EncryptCBC

func EncryptCBC(plainText []byte, key []byte) ([]byte, error)

EncryptCBC 加密,使用CBC模式 key长度必须是 16/24/32

Types

This section is empty.

Jump to

Keyboard shortcuts

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