.NET与JAVA、PHP对Base64的实现
String str="yunzhang123";
String encode=Base64.getEncoder().encodeToString(str.getBytes("UTF-8"));
String decode=new String(Base64.getDecoder().decode(encode.getBytes("UTF-8")));
System.out.println(encode+"\r\n"+decode);
$str='yunzhang123';
$encode=base64_encode($str);
$decode=base64_decode($encode);