|
@@ -6,6 +6,7 @@ import com.fdkankan.common.constant.CommonStatus;
|
|
import com.fdkankan.common.constant.ErrorCode;
|
|
import com.fdkankan.common.constant.ErrorCode;
|
|
import com.fdkankan.common.constant.SceneStatus;
|
|
import com.fdkankan.common.constant.SceneStatus;
|
|
import com.fdkankan.common.exception.BusinessException;
|
|
import com.fdkankan.common.exception.BusinessException;
|
|
|
|
+import com.fdkankan.common.util.AesUtil;
|
|
import com.fdkankan.common.util.Base64Converter;
|
|
import com.fdkankan.common.util.Base64Converter;
|
|
import com.fdkankan.common.util.PasswordUtils;
|
|
import com.fdkankan.common.util.PasswordUtils;
|
|
import com.fdkankan.common.util.SecurityUtil;
|
|
import com.fdkankan.common.util.SecurityUtil;
|
|
@@ -97,15 +98,8 @@ public class CheckViewBizAuthAspect {
|
|
boolean flag = true;
|
|
boolean flag = true;
|
|
if(StrUtil.isNotEmpty(sign)){
|
|
if(StrUtil.isNotEmpty(sign)){
|
|
String[] split = null;
|
|
String[] split = null;
|
|
- try {byte[] raw = ENCRYPT_KEY.getBytes(StandardCharsets.UTF_8);
|
|
|
|
- Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
|
|
|
|
- SecretKeySpec skeySpec = new SecretKeySpec(raw, "AES");
|
|
|
|
- cipher.init(Cipher.DECRYPT_MODE, skeySpec);
|
|
|
|
- byte[] encrypted1 = Base64.getDecoder().decode(sign);
|
|
|
|
- byte[] original = cipher.doFinal(encrypted1);
|
|
|
|
-
|
|
|
|
- //字节转换字符串
|
|
|
|
- String decode = new String(original, StandardCharsets.UTF_8);
|
|
|
|
|
|
+ try {
|
|
|
|
+ String decode = AesUtil.decryptECB(sign, ENCRYPT_KEY, "AES/ECB/PKCS5Padding");
|
|
split = decode.split("@");
|
|
split = decode.split("@");
|
|
|
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|