标签:c style class blog code java
1 BASE64Encoder base64=new BASE64Encoder(); 2 String encoderStr=base64.encode(string.getBytes("utf-8")); 3 System.out.println(encoderStr); 4 5 BASE64Decoder base64decoder=new BASE64Decoder(); 6 byte b[]=base64decoder.decodeBuffer(encoderStr); 7 System.out.println(new String(b,"utf-8"));
中文编解码,可用于存中文或者编码具体参数的作用,防止被知道,布布扣,bubuko.com
标签:c style class blog code java
原文地址:http://www.cnblogs.com/friends-wf/p/3755938.html