javascript:
加密:btoa("password")
解密:atob("cGFzc3dvcmQ=")
php:
加密:base64_encode ("password")
解密:base64_decode ("cGFzc3dvcmQ=")
java:
加密:
String originalInput = "password";
String encodedString=Base64.getEncoder()
.encodeToString(originalInput.getBytes());
解密:
String encodedString="cGFzc3dvcmQ=";
byte[] decodedBytes = Base64.getDecoder().decode(encodedString);
String decodedString = new String(decodedBytes);
C 语言:
加密(编辑器:visual studio 2017):
解密(编辑器:visual studio 2017):
评论区