<span style=
"font-family:Times New Roman;font-size:14px;"
>
package
;
import
;
import
.BASE64Decoder;
import
.BASE64Encoder;
public
class
Base64 {
public
static
void
main(String[] args) {
try
{
String name=
"我爱你"
;
String pwd=
"你却不知道。"
;
BASE64Encoder en=
new
BASE64Encoder();
name=((
"utf-8"
));
//5oiR54ix5L2g
pwd=((
"utf-8"
));
//5L2g5Y205LiN55+l6YGT44CC
(name+
","
+pwd);
BASE64Decoder den=
new
BASE64Decoder();
name=
new
String((name),
"utf-8"
);
pwd=
new
String((pwd),
"utf-8"
);
(name+
","
+pwd);
}
catch
(IOException e) {
();
}
}
}
</span>