royalrick / weapp

微信小程序服务端 SDK (for Golang)
https://pkg.go.dev/github.com/medivhzhan/weapp/v3
Apache License 2.0
1.47k stars 281 forks source link

"crypto/aes: invalid key size 43 #110

Closed unix2dos closed 8 months ago

unix2dos commented 8 months ago

小程序消息抄送时,EncodingAESKey(消息加密密钥) 是43位,解密的时候直接报错。

image

image

unix2dos commented 8 months ago

看到了,少了一个 key, err := base64.RawStdEncoding.DecodeString(aesKey)