服务器向客户端返回时:

response.setContentType("text/json; charset=utf-8");

客户端解码时:

return new String(decrypt(hex2byte(data.getBytes()), PASSWORD_CRYPT_KEY.getBytes()), "UTF-8");

 

相关文章:

  • 2021-12-15
  • 2021-11-28
  • 2021-08-08
  • 2021-04-21
  • 2021-10-14
  • 2021-11-28
猜你喜欢
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2021-07-28
  • 2021-10-09
相关资源
相似解决方案