aes

package
v0.0.0-...-2747672 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockSize16 = 16
)

AES128-CBC-pkcs7padding加密方式

Variables

This section is empty.

Functions

This section is empty.

Types

type Cipher128

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

func NewAesCipher128

func NewAesCipher128() *Cipher128

实例化一个AesCliper128

func (*Cipher128) BlockSize

func (c *Cipher128) BlockSize() int

func (*Cipher128) Decrypt

func (c *Cipher128) Decrypt(encData []byte) []byte

AES-CBC 解密

func (*Cipher128) Encrypt

func (c *Cipher128) Encrypt(origData []byte) []byte

AES-CBC 加密

Jump to

Keyboard shortcuts

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