1、String 转Base64
import .Base64;
String oldStr = "测试Test";
Base64 base64 = new Base64();
String base64Sign = (("UTF-8"));
2、Base64转String
String newStr = new String(Base64.decodeBase64(()),"UTF-8");
1、String 转Base64
import .Base64;
String oldStr = "测试Test";
Base64 base64 = new Base64();
String base64Sign = (("UTF-8"));
2、Base64转String
String newStr = new String(Base64.decodeBase64(()),"UTF-8");