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