base64 处理字符串

String callback = "https://mp.csdn.net/console/editor/html";
String encode= Base64.getUrlEncoder().encodeToString(callback.getBytes());

你可能感兴趣的:(java,base64)