Versions in this module Expand all Collapse all v1 v1.5.4 Oct 7, 2019 v1.5.3 Sep 26, 2019 Changes in this version + func AesECBDecrypt(ciphertext, key []byte) (plaintext []byte, err error) + func CBCDecrypt(ssk, data, iv string) (bts []byte, err error) + func CBCEncrypt(key, data string) (ciphertext []byte, err error) + func EncodeURL(api string, params map[string]string) (string, error) + func FetchIP() (net.IP, error) + func GetQuery(req *http.Request, key string) string + func MD5(str string) (string, error) + func NewTLSClient(certPath, keyPath string) (httpClient *http.Client, err error) + func PKCS5Padding(ciphertext []byte, blockSize int) []byte + func PKCS5UnPadding(plaintext []byte) ([]byte, error) + func PostXML(uri string, obj interface{}) ([]byte, error) + func RandomString(ln int) string + func SignByMD5(data map[string]string, key string) (string, error) + func TSLPostXML(uri string, obj interface{}, certPath, keyPath string) ([]byte, error) + func TokenAPI(api, token string) (string, error) + func Validate(rawData, ssk, signature string) bool