Documentation ¶
Index ¶
- func AESCBCDecrypt(cypted []byte, key []byte, padding ...Padding) ([]byte, error)
- func AESCBCEncrypt(origData []byte, key []byte, padding ...Padding) ([]byte, error)
- func AESECBDecrypt(cypted []byte, key []byte, padding ...Padding) ([]byte, error)
- func AESECBEncrypt(origData []byte, key []byte, padding ...Padding) ([]byte, error)
- func MD5(key []byte) []byte
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- type Padding
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESCBCDecrypt ¶
AESCBCDecrypt Aes CBC解密PKCS5
@param origData []byte 解密的字节数组
@param key []byte 密钥字节数组
func AESCBCEncrypt ¶
AESCBCEncrypt AesCBC加密PKCS5
@param origData []byte 加密的字节数组
@param key []byte 密钥字节数组
func AESECBDecrypt ¶
AESECBDecrypt Aes ECB解密PKCS5
@param origData []byte 解密的字节数组
@param key []byte 密钥字节数组
func AESECBEncrypt ¶
AESECBEncrypt Aes ECB加密PKCS5
@param origData []byte 加密的字节数组
@param key []byte 密钥字节数组
func PKCS5Padding ¶
PKCS5Padding PKCS5密钥填充方式
func PKCS7Padding ¶
func PKCS7UnPadding ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.