/**
* 输入流
* */
InputStream is1 = so.getInputStream();
Scanner sc=new Scanner(is1);
String str=sc.nextLine();
//对接收的消息进行解密
RSAPrivateKey priKey = rsa.getRSAPrivateKey();
String msg= new String((rsa.decrypt(priKey, base64.decode(str))));
System.err.println("密文为"+str);
System.err.println(msg);
System.out.println("客户端说:"+rsa.decrypt(priKey, base64.decode(str)));
慕粉3167948