Commit d8e6304a authored by 黎博's avatar 黎博

修改加解密方法

parent ea59979e
...@@ -42,7 +42,8 @@ public class YeebaoEncryptConvertor implements EncryptConvertor { ...@@ -42,7 +42,8 @@ public class YeebaoEncryptConvertor implements EncryptConvertor {
public String decrypt(String request) { public String decrypt(String request) {
try { try {
Map requestMap = JsonTransUtils.strToMap(request); Map requestMap = JsonTransUtils.strToMap(request);
aesKey = Rsa.decrypt((String) requestMap.get("encryptkey"), privateKey); encryptKey = requestMap.get("encryptkey").toString();
aesKey = Rsa.decrypt(encryptKey, privateKey);
return Aes.decryptFromBase64((String) requestMap.get("data"), aesKey); return Aes.decryptFromBase64((String) requestMap.get("data"), aesKey);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
......
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