public class test {
public static void main(String[] args) {
//我这里的场景是手机号,可以是手机号、座机号、乱序虚拟号码
String phone = "MTA2NTgxMzk=";
byte[] encode3 = java.util.Base64.getDecoder().decode(phone);
String a1 = null;
try {
a1 = new String(encode3,"UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
System.out.println(a1);
}
}
关于Base64解码有些正确,有些解码不正确的问题
![](https://img-home.csdnimg.cn/images/20240711042549.png)