android studio 怎么导入sun.misc.base64decoder
发布网友
发布时间:2022-05-16 21:50
我来回答
共1个回答
热心网友
时间:2023-09-12 12:36
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"));