Base64
tio-utils 内置了 base64 编码和解码工具类,示例代码如下
import com.litongjava.tio.utils.encoder.Base64Utils;
public class Base64Test {
public static void main(String[] args) {
String schoolId = "yourSchoolIdHere";
String encoded = Base64Utils.encodeToString(schoolId);
System.out.println("Encoded: " + encoded);
String decoded = Base64Utils.decodeToString(encoded);
System.out.println("Decoded: " + decoded);
}
}