|
@@ -60,7 +60,9 @@ public class MyTest {
|
|
|
String filePath = URLEncoder.encode(name,"utf-8"); //java转码
|
|
|
//name= new String(name.getBytes("ISO8859-1"),"UTF-8");
|
|
|
System.out.println(filePath);
|
|
|
+ //加密
|
|
|
System.out.println(DESencode("niujinsheng.sm","SSB2023BMD"));
|
|
|
+ //解密
|
|
|
System.out.println(DESdecode("C0D8A1C91E39CE7BD9D07949AC4F08E7","SSB2023BMD"));
|
|
|
//base64进行加密解密,通常用作对二进制数据进行加密
|
|
|
/* byte[] base64Encrypt = EnDecoderUtil.base64Encrypt(name);
|