使用微信消息体加密方式,拿到相关参数
String msg_Signature = request.getParameter("msg_signature");
String timeStamp = request.getParameter("timestamp");
String nonce = request.getParameter("nonce");
但是在
// 验证安全签名
String signature = SHA1.getSHA1(token, timeStamp, nonce, encrypt[1].toString());
这一步计算出的值和拿到的值始终不一致,请问这是什么原因,求各位指点!