Skip to content

ah-guobing/Base64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Base64

.NET与JAVA、PHP对Base64的实现

JAVA

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);

PHP

$str='yunzhang123';
$encode=base64_encode($str);
$decode=base64_decode($encode);

About

不同语言关于Base64的实现

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages