1、如果是在web server平台使用
在加密文件加密后,把字符串用http协议传给解密文件。
例如:解密文件在web平台中用servlet映射为"/GetInfo",或jsp文件名为/GetInfo.jsp
加密后添加
URL url=new URL("http://127.0.0.1:8080/GetInfo?message=加密串");
HttpURLConnection connection=(HttpURLConnection)(url.openConnection());
connection.setRequestMethod("GET");
connection.setDoOutput(true);
BufferedReader in=new BufferedReader(new InputStreamReader(connection.getInputStream()));
在加密文件加密后,把字符串用http协议传给解密文件。
例如:解密文件在web平台中用servlet映射为"/GetInfo",或jsp文件名为/GetInfo.jsp
加密后添加
URL url=new URL("http://127.0.0.1:8080/GetInfo?message=加密串");
HttpURLConnection connection=(HttpURLConnection)(url.openConnection());
connection.setRequestMethod("GET");
connection.setDoOutput(true);
BufferedReader in=new BufferedReader(new InputStreamReader(connection.getInputStream()));
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货