Documentation ¶
Index ¶
- func AesCBCDecrypt(encryptData, key []byte) ([]byte, error)
- func AesCBCEncrypt(rawData, key []byte) ([]byte, error)
- func AesECBDecrypt(src, key []byte) ([]byte, error)
- func AesECBEncrypt(src, key []byte) ([]byte, error)
- func GetAccessToken(appId, secret string, c cache.Cache) func() (string, error)
- func GetJsapiTicket(appId string, c cache.Cache) func(string) (string, error)
- func HmacSha256(p []byte) string
- func Md5(p []byte) string
- func NewMultipartRequest(uri, paramName, path string, params map[string]string) (*http.Request, error)
- func PKCS7Padding(cipherText []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func RandomStr(length int) string
- func Sha1(p []byte) string
- func Sha256(p []byte) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesCBCDecrypt ¶
func AesCBCEncrypt ¶
func AesECBDecrypt ¶
func AesECBEncrypt ¶
func GetAccessToken ¶
GetAccessToken 接口调用凭证
func GetJsapiTicket ¶
GetJsapiTicket jsapi ticket
func HmacSha256 ¶
func NewMultipartRequest ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.