feat:修改正式包名

feat:重新生成加密的第三方SDK-key(感觉没区别)
This commit is contained in:
Max
2023-11-29 20:46:12 +08:00
parent efef976125
commit 5bda23c293
9 changed files with 41 additions and 42 deletions

View File

@@ -109,6 +109,16 @@ public class DESUtils {
return textDecrypt;
}
//服务端解密
public static String DESAndBase64Decrypt(String key,String dataBase64) throws Exception {
if (StringUtils.isEmpty(dataBase64)) return null;
byte[] encryptedData = Base64.decode(dataBase64, Base64.DEFAULT);
byte[] decryptedData = decryptByteDES(encryptedData, key);
String textDecrypt = new String(decryptedData, ENCODE);
return textDecrypt;
}
/**
* 执行加密操作
*