Documentation ¶
Index ¶
- func NewCryptoAES_OFB(key, iv []byte) goaes.CryptoAES
- type CryptoAES_OFB
- func (c *CryptoAES_OFB) Decrypt(in []byte) (out []byte, err error)
- func (c *CryptoAES_OFB) DecryptBase64(in string) (out []byte, err error)
- func (c *CryptoAES_OFB) DecryptHex(in string) (out []byte, err error)
- func (c *CryptoAES_OFB) Encrypt(in []byte) (out []byte, err error)
- func (c *CryptoAES_OFB) EncryptBase64(in []byte) (out string, err error)
- func (c *CryptoAES_OFB) EncryptHex(in []byte) (out string, err error)
- func (c *CryptoAES_OFB) GetMode() goaes.AES_Mode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCryptoAES_OFB ¶
key 长度必须为16/24/32字节(128/192/256 bits) iv 向量长度固定16字节
Types ¶
type CryptoAES_OFB ¶
type CryptoAES_OFB struct {
// contains filtered or unexported fields
}
func (*CryptoAES_OFB) Decrypt ¶
func (c *CryptoAES_OFB) Decrypt(in []byte) (out []byte, err error)
解密后返回二进制字节数据切片
func (*CryptoAES_OFB) DecryptBase64 ¶
func (c *CryptoAES_OFB) DecryptBase64(in string) (out []byte, err error)
解密BASE64编码字符串的密文后返回二进制切片
func (*CryptoAES_OFB) DecryptHex ¶ added in v1.4.1
func (c *CryptoAES_OFB) DecryptHex(in string) (out []byte, err error)
HEX编码字符串的密文后返回二进制切片
func (*CryptoAES_OFB) Encrypt ¶
func (c *CryptoAES_OFB) Encrypt(in []byte) (out []byte, err error)
加密后返回二进制字节数据切片
func (*CryptoAES_OFB) EncryptBase64 ¶
func (c *CryptoAES_OFB) EncryptBase64(in []byte) (out string, err error)
加密后将密文做BASE64编码字符串
func (*CryptoAES_OFB) EncryptHex ¶ added in v1.4.1
func (c *CryptoAES_OFB) EncryptHex(in []byte) (out string, err error)
加密后将密文做HEX编码字符串
Click to show internal directories.
Click to hide internal directories.