feat:修改正式包名
feat:重新生成加密的第三方SDK-key(感觉没区别)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 执行加密操作
|
||||
*
|
||||
|
Reference in New Issue
Block a user