Documentation ¶
Index ¶
- Constants
- func AesCbcPKCS5PaddingDecrypt(src, key, iv string) (string, error)
- func AesCbcPKCS5PaddingEncrypt(src, key, iv string) (string, error)
- func AesEcbPKCS5PaddingDecrypt(src, key string) (string, error)
- func AesEcbPKCS5PaddingEncrypt(src, key string) (string, error)
- func Md5Sum(src string) string
- func NewECBDecrypter(b cipher.Block) cipher.BlockMode
- func NewECBEncrypter(b cipher.Block) cipher.BlockMode
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func PostHttpsJsonDirectRequest(url string, body []byte) ([]byte, error)
- func PostHttpsJsonRequest(url string, params map[string]interface{}) (map[string]interface{}, error)
- func Sha1Sum(src string) string
- func Sha256Sum(src string) string
- func ToJson(v interface{}) string
Constants ¶
View Source
const ( ApplicationJson = "application/json" SuccessStatusCode = 200 )
Variables ¶
This section is empty.
Functions ¶
func AesCbcPKCS5PaddingDecrypt ¶
AesCbcPKCS5PaddingDecrypt AES CBC PKCS5Padding decrypt
func AesCbcPKCS5PaddingEncrypt ¶
AesCbcPKCS5PaddingEncrypt AES CBC PKCS5Padding encrypt
func AesEcbPKCS5PaddingDecrypt ¶
AesEcbPKCS5PaddingDecrypt AES ECB PKCS5Padding decrypt
func AesEcbPKCS5PaddingEncrypt ¶
AesEcbPKCS5PaddingEncrypt AES ECB PKCS5Padding encrypt
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func PostHttpsJsonDirectRequest ¶
PostHttpsJsonDirectRequest post https json body direct and return bytes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.