cfb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCryptoAES_CFB

func NewCryptoAES_CFB(key, iv []byte) goaes.CryptoAES

key 长度必须为16/24/32字节(128/192/256 bits) iv 向量长度固定16字节

Types

type CryptoAES_CFB

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

func (*CryptoAES_CFB) Decrypt

func (c *CryptoAES_CFB) Decrypt(in []byte) (out []byte, err error)

解密后返回二进制字节数据切片

func (*CryptoAES_CFB) DecryptBase64

func (c *CryptoAES_CFB) DecryptBase64(in string) (out []byte, err error)

解密BASE64编码字符串的密文后返回二进制切片

func (*CryptoAES_CFB) DecryptHex

func (c *CryptoAES_CFB) DecryptHex(in string) (out []byte, err error)

HEX编码字符串的密文后返回二进制切片

func (*CryptoAES_CFB) Encrypt

func (c *CryptoAES_CFB) Encrypt(in []byte) (out []byte, err error)

加密后返回二进制字节数据切片

func (*CryptoAES_CFB) EncryptBase64

func (c *CryptoAES_CFB) EncryptBase64(in []byte) (out string, err error)

加密后将密文做BASE64编码字符串

func (*CryptoAES_CFB) EncryptHex

func (c *CryptoAES_CFB) EncryptHex(in []byte) (out string, err error)

加密后将密文做HEX编码字符串

func (*CryptoAES_CFB) GetMode

func (c *CryptoAES_CFB) GetMode() goaes.AES_Mode

获取当前AES模式

Jump to

Keyboard shortcuts

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