Documentation ¶
Index ¶
- func AESDecryptData(cipherText []byte, aesKey []byte, iv []byte) (rawData []byte, err error)
- func AESDecryptMsg(base64CipherText string, encodingAESKey string) (random, rawXMLMsg, appId []byte, err error)
- func AESEncryptMsg(random, rawXMLMsg []byte, appId string, encodingAESKey string) (ciphertext string, err error)
- func GetRandString(length int) string
- func GetRandStringWithCharset(length int, charset string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESDecryptData ¶
AESDecryptData 数据解密
func AESDecryptMsg ¶
func AESDecryptMsg(base64CipherText string, encodingAESKey string) (random, rawXMLMsg, appId []byte, err error)
AESDecryptMsg 消息解密 ciphertext = AES_Encrypt[random(16B) + msg_len(4B) + rawXMLMsg + appId]
func AESEncryptMsg ¶
func AESEncryptMsg(random, rawXMLMsg []byte, appId string, encodingAESKey string) (ciphertext string, err error)
AESEncryptMsg 消息加密 ciphertext = AES_Encrypt[random(16B) + msg_len(4B) + rawXMLMsg + appId]
func GetRandStringWithCharset ¶
GetRandStringWithCharset 获取指定字符集 下 指定长度的随机字符串
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.