回复 19楼 hhwz
public static void main(String[] args) throws Exception {EncrypAES de1 = new EncrypAES();
//String msg ="郭XX-搞笑相声全集";
String msg;
while(true)
{
System.out.println("Enter your words ");
InputStreamReader stdin= new InputStreamReader(System.in);
BufferedReader bufin= new BufferedReader(stdin);
msg=bufin.readLine();
if(msg==null)
break;
else
{
byte[] encontent = de1.Encrytor(msg);
byte[] decontent = de1.Decryptor(encontent);
System.out.println("明文是:" + msg);
System.out.println("加密后:" + new String(encontent));
System.out.println("解密后:" + new String(decontent));
}
}
}
这是一部分~~~
为时未晚~~COME ON!!实践才是真理!!!@~@