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()));