github.com/KonishiLee/wechat-crypter

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


License
MIT
Install
go get github.com/KonishiLee/wechat-crypter

Documentation

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