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 EncryptCbcPKCS5PaddingToString(plainData []byte, key []byte, iv ...[]byte) (string, error)
- func EncryptCfbZeroPaddingToString(plainData []byte, key []byte, padding *int, iv ...[]byte) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DecryptCbcPKCS5Padding func(cipherData []byte, key []byte, iv ...[]byte) ([]byte, error) = gaes.DecryptCBC
DecryptCbcPKCS5Padding
加密模式: CBC 填充方式: PKCS5Padding
View Source
var DecryptCfbZeroPadding func(cipherData []byte, key []byte, unPadding int, iv ...[]byte) ([]byte, error) = gaes.DecryptCFB
DecryptCfbZeroPadding
加密模式: CFB 填充方式: ZeroPadding
View Source
var EncryptCbcPKCS5Padding func(plainData []byte, key []byte, iv ...[]byte) ([]byte, error) = gaes.EncryptCBC
EncryptCbcPKCS5Padding
加密模式: CBC 填充方式: PKCS5Padding
View Source
var EncryptCfbZeroPadding func(plainData []byte, key []byte, padding *int, iv ...[]byte) ([]byte, error) = gaes.EncryptCFB
EncryptCfbZeroPadding
加密模式: CFB 填充方式: ZeroPadding
Functions ¶
func DecryptCbcPKCS5PaddingFromString ¶
DecryptCbcPKCS5PaddingFromString 密文(string) => 明文([]byte)
func DecryptCfbZeroPaddingFromString ¶
func DecryptCfbZeroPaddingFromString(base64Str string, key []byte, unPadding int, iv ...[]byte) ([]byte, error)
DecryptCfbZeroPaddingFromString 密文(string) => 明文([]byte)
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.
Click to show internal directories.
Click to hide internal directories.