/wechat-crypter

微信开放平台加解密库 (Golang)

Primary LanguageGoMIT LicenseMIT

wechat-crypter

微信开放平台加解密库 (Golang)

Usage

$ go get github.com/KonishiLee/wechat-crypter
import "github.com/KonishiLee/wechat-crypter"

token := "RMNlACHlV5ThzfRlVS4D4"
corpID := "wx5823bf96d3bd56c7"
encodingAESKey := "jWmYm7qr5nMoAUwZRjGtBxmz3KA1tkAj3ykkR6q2B2C"

msgCrypter, _ := crypter.NewMessageCrypter(token, encodingAESKey, corpID)
msgDecrypt, corpID, err := msgCrypter.Decrypt("msgEncrypt")

Doc

http://godoc.org/github.com/KonishiLee/wechat-crypter