Documentation ¶
Index ¶
- Variables
- func DecryptCbcPKCS5PaddingFromString(base64Str string, key []byte, iv ...[]byte) ([]byte, error)
- func DecryptCfbZeroPaddingFromString(base64Str string, key []byte, unPadding int, iv ...[]byte) ([]byte, error)
- func DecryptEcbPKCS5PaddingFromString(key []byte, cipherText string) ([]byte, error)
- func EncryptCbcPKCS5PaddingToString(plainData []byte, key []byte, iv ...[]byte) (string, error)
- func EncryptCfbZeroPaddingToString(plainData []byte, key []byte, padding *int, iv ...[]byte) (string, error)
- func EncryptEcbPKCS5PaddingToString(key []byte, plainData []byte) (string, error)
Constants ¶
This section is empty.
Variables ¶
var DecryptCbcPKCS5Padding func(cipherData []byte, key []byte, iv ...[]byte) ([]byte, error) = gaes.DecryptCBC
DecryptCbcPKCS5Padding
加密模式: CBC 填充方式: PKCS5Padding
var DecryptCfbZeroPadding func(cipherData []byte, key []byte, unPadding int, iv ...[]byte) ([]byte, error) = gaes.DecryptCFB
DecryptCfbZeroPadding
加密模式: CFB 填充方式: ZeroPadding
var DecryptEcbPKCS5Padding func(key, cipherData []byte) ([]byte, error) = codec.EcbDecrypt
DecryptEcbPKCS5Padding 密文([]byte) => 明文([]byte)
var EncryptCbcPKCS5Padding func(plainData []byte, key []byte, iv ...[]byte) ([]byte, error) = gaes.EncryptCBC
EncryptCbcPKCS5Padding
加密模式: CBC 填充方式: PKCS5Padding
var EncryptCfbZeroPadding func(plainData []byte, key []byte, padding *int, iv ...[]byte) ([]byte, error) = gaes.EncryptCFB
EncryptCfbZeroPadding
加密模式: CFB 填充方式: ZeroPadding
var EncryptEcbPKCS5Padding func(key, plainText []byte) ([]byte, error) = codec.EcbEncrypt
EncryptEcbPKCS5Padding 明文([]byte) => 密文([]byte)
Functions ¶
func DecryptCbcPKCS5PaddingFromString ¶
DecryptCbcPKCS5PaddingFromString 密文(string) => 明文([]byte)
func DecryptCfbZeroPaddingFromString ¶
func DecryptCfbZeroPaddingFromString(base64Str string, key []byte, unPadding int, iv ...[]byte) ([]byte, error)
DecryptCfbZeroPaddingFromString 密文(string) => 明文([]byte)
func DecryptEcbPKCS5PaddingFromString ¶
DecryptEcbPKCS5PaddingFromString 密文(base64 string) => 明文([]byte)
@param key 密钥(must be 16/24/32 bit length)
func EncryptCbcPKCS5PaddingToString ¶
EncryptCbcPKCS5PaddingToString 明文([]byte) => 密文(string)
@param key 密钥(must be 16/24/32 bit length) @param iv 偏移量, (1) 默认: []byte("I Love Go Frame!")
(2) 建议长度为16(由于源码中的 aes.BlockSize)
func EncryptCfbZeroPaddingToString ¶
func EncryptCfbZeroPaddingToString(plainData []byte, key []byte, padding *int, iv ...[]byte) (string, error)
EncryptCfbZeroPaddingToString 明文([]byte) => 密文(string)
@param key 密钥(must be 16/24/32 bit length) @param iv 偏移量, (1) 默认: []byte("I Love Go Frame!")
(2) 建议长度为16(由于源码中的 aes.BlockSize)
Types ¶
This section is empty.