java中base64的用法

java中用base64编码的API用法:
String s = "hello,world !";
byte[] strByte = s.getBytes();
String enStr = new sun.misc.BASE64Encoder().encode(strByte);
解码用法:
byte[] deByte = new sun.misc.BASE64Decoder().decodeBuffer(enStr );
System.out.println(new String(deByte));
原文地址:https://www.cnblogs.com/qizhenglong/p/2876256.html