Commit e194bdfe authored by 赵啸非's avatar 赵啸非

asdffffffffff

parent 12a721e3
Pipeline #1509 canceled with stages
......@@ -35,8 +35,11 @@ public class MessageServiceImpl implements MessageService {
@Override
public MessageReq decryptMessage(MessageReq req) {
if ("RSA".equalsIgnoreCase(req.getAlgorithm())){
if ("RSA".equalsIgnoreCase(req.getAlgorithm())) {
String decryptContent = RSAUtils.decode(req.getContent(), req.getPassword());
req.setDecryptContent(null);
req.setContent(null);
req.setAlgorithm(null);
req.setDecryptContent(decryptContent);
}
return req;
......
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