Documentation ¶
Index ¶
- func AesCbcDecrypt_Base64Str(cipherText_Base64 string, secretKey string) (plainText string, err error)
- func AesCbcDecrypt_Bytes(cipherText []byte, key []byte) (plainText []byte, err error)
- func AesCbcDecrypt_HexStr(cipherText_Hex string, secretKey string) (plainText string, err error)
- func AesCbcEncrypt_Base64Str(plainText string, secretKey string) (cipherText_Base64 string, err error)
- func AesCbcEncrypt_Bytes(plainText []byte, key []byte) (cipherText []byte, err error)
- func AesCbcEncrypt_HexStr(plainText string, secretKey string) (cipherText_Hex string, err error)
- func PKCS7Padding(origData []byte, blockSize int) []byte
- func PKCS7UnPadding(src []byte) (dest []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesCbcDecrypt_Base64Str ¶
func AesCbcDecrypt_Base64Str(cipherText_Base64 string, secretKey string) (plainText string, err error)
AesCbcDecrypt_Base64Str AES CBC decrypt
func AesCbcDecrypt_Bytes ¶
AesCbcDecrypt_Bytes AES CBC decrypt
func AesCbcDecrypt_HexStr ¶
AesCbcDecrypt_HexStr AES CBC decrypt
func AesCbcEncrypt_Base64Str ¶
func AesCbcEncrypt_Base64Str(plainText string, secretKey string) (cipherText_Base64 string, err error)
AesCbcEncrypt_Base64Str AES CBC encrypt
func AesCbcEncrypt_Bytes ¶
AesCbcEncrypt_Bytes AES CBC encrypt
func AesCbcEncrypt_HexStr ¶
AesCbcEncrypt_HexStr AES CBC encrypt
func PKCS7UnPadding ¶
PKCS7UnPadding 填充的反向操作
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.