Documentation ¶
Index ¶
- func AesCBCDncrypt(encryptData, key []byte) ([]byte, error)
- func AesCBCEncrypt(rawData, key []byte) ([]byte, error)
- func Decrypt(rawData string, key []byte) (string, error)
- func EcbDecrypt(data, key []byte) []byte
- func EcbEncrypt(data, key []byte) []byte
- func Encrypt(rawData, key []byte) (string, error)
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesCBCDncrypt ¶
func AesCBCEncrypt ¶
aes加密,填充模式由key决定,16位,24,32分别对应AES-128, AES-192, or AES-256.源码好像是写死16了
func EcbDecrypt ¶
func EcbEncrypt ¶
func PKCS7UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.