记得上下班打卡 | git大法好,push需谨慎

Commit 6af65f9f authored by anjiabin's avatar anjiabin

还原转让加密修改

parent 10a4fce9
......@@ -57,10 +57,7 @@ public class DecryptAndVerifyAspect {
}
private String decryptAndVerify(EncryptedReq encryptedReq) {
String encryptedData = CodecUtil.aesEncrypt(JsonUtils.toJson(encryptedReq.getData()));
log.info("验签 加密后的数据:" + encryptedData);
String sign = CodecUtil.sha1Encrypt(encryptedData + encryptedReq.getTimestamp());
String sign = CodecUtil.sha1Encrypt(encryptedReq.getEncryptedData() + encryptedReq.getTimestamp());
if (sign.equals(encryptedReq.getSign())) {
return CodecUtil.aesDecrypt(encryptedReq.getEncryptedData());
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment