String s1="helloworld";
//加密
byte[] buf=Base64.encodeBase64(s1.getBytes());
String s2=new String(buf);
System.out.println(s2);
//解密
buf=Base64.decodeBase64(buf);
String s3=new String(buf);
System.out.println(s3);
//加密
byte[] buf=Base64.encodeBase64(s1.getBytes());
String s2=new String(buf);
System.out.println(s2);
//解密
buf=Base64.decodeBase64(buf);
String s3=new String(buf);
System.out.println(s3);