Documentation ¶
Index ¶
- func AesCBCDncrypt(encryptData, key []byte) ([]byte, error)
- func AesCBCEncrypt(rawData, key []byte) ([]byte, error)
- func Dncrypt(rawData string) (string, error)
- func Encrypt(rawData []byte) (string, error)
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func ReturnMessage(c *gin.Context, resp RespJson)
- type RespJson
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.
func PKCS7UnPadding ¶
func ReturnMessage ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.