byte
[] key=Base64.decode(
"YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4"
.getBytes(), Base64.DEFAULT);
byte
[] data=value.getBytes(
"UTF-8"
);
System.out.println(
"ECB加密解密"
);
byte
[] str3 = Des3.des3EncodeECB(key,data );
byte
[] str4 = Des3.ees3DecodeECB(key, str3);
System.out.println(
new
String(Base64.encode(str3, Base64.DEFAULT),
"UTF-8"
));
System.out.println(
new
String(str4,
"UTF-8"
));
android的 Base64