Documentation
¶
Index ¶
- func AesDecrypt(text, key string) ([]byte, error)
- func AesEncrypt(text, key string) (string, error)
- func Base64Dncode(src string) string
- func Base64Encode(src []byte) string
- func GetCorpId() (corp string, secret string)
- func GetCorpToken() string
- func GetElement(key string, themap map[interface{}]interface{}) string
- func GetPubId() (pubId string, pubSecret string)
- func GetPubToken() string
- func GetXMLConfig(path string) map[string]string
- func GetYamlConfig(path string) map[interface{}]interface{}
- func LCS(source, target string) (int, string)
- func Log(v ...interface{})
- func MsgSign(token, timestamp, nonce, encryptedMsg string) (signature string)
- func PKCS7Decode(text []byte) []byte
- func PKCS7Encode(text []byte) []byte
- func ReadAesKey() string
- func ReadToken() string
- func SendMsgSignature(token, timestamp, nonce, msg_encrypt string) string
- type ConfigElement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
func AesEncrypt ¶
func Base64Dncode ¶
func Base64Encode ¶
func GetCorpToken ¶
func GetCorpToken() string
func GetElement ¶
func GetPubToken ¶
func GetPubToken() string
func GetXMLConfig ¶
func GetYamlConfig ¶
func GetYamlConfig(path string) map[interface{}]interface{}
func SendMsgSignature ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.