Commit 6b56128d authored by 赵啸非's avatar 赵啸非

修改udp 加密解密

parent aec6fd59
......@@ -47,7 +47,7 @@ public class NettyUDPServerHandler extends SimpleChannelInboundHandler<DatagramP
resp.setCode(YesNoEnum.YES.getValue());
log.info("receive->UDP entbefore:{}", packet.sender().toString() + "," + content);
try {
content = EncryptUtil.myEnscrt(content, 9, "FZV1D&tr", "w4*KbUamPdZDnDpG");
content = EncryptUtil.myEnscrt(content, 9, "FZV1D&tr", ENCRYPT_STR);
//EncryptUtil.decrypt(content, ENCRYPT_STR);
log.info("receive->UDPafter:{}", packet.sender().toString() + "," + content);
JSONObject jsonObject = JSON.parseObject(content);
......
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