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

Commit 6af65f9f authored by anjiabin's avatar anjiabin

还原转让加密修改

parent 10a4fce9
...@@ -57,10 +57,7 @@ public class DecryptAndVerifyAspect { ...@@ -57,10 +57,7 @@ public class DecryptAndVerifyAspect {
} }
private String decryptAndVerify(EncryptedReq encryptedReq) { private String decryptAndVerify(EncryptedReq encryptedReq) {
String encryptedData = CodecUtil.aesEncrypt(JsonUtils.toJson(encryptedReq.getData())); String sign = CodecUtil.sha1Encrypt(encryptedReq.getEncryptedData() + encryptedReq.getTimestamp());
log.info("验签 加密后的数据:" + encryptedData);
String sign = CodecUtil.sha1Encrypt(encryptedData + encryptedReq.getTimestamp());
if (sign.equals(encryptedReq.getSign())) { if (sign.equals(encryptedReq.getSign())) {
return CodecUtil.aesDecrypt(encryptedReq.getEncryptedData()); return CodecUtil.aesDecrypt(encryptedReq.getEncryptedData());
} else { } 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