From aec514fa96c1c537bc13db0aba61dea1a077fd5a Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Tue, 7 Dec 2021 16:10:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=A3=E7=A0=81=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- basic-util/src/main/java/ink/wgink/util/AesUtil.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/basic-util/src/main/java/ink/wgink/util/AesUtil.java b/basic-util/src/main/java/ink/wgink/util/AesUtil.java index c6b8a64a..57d1dce8 100644 --- a/basic-util/src/main/java/ink/wgink/util/AesUtil.java +++ b/basic-util/src/main/java/ink/wgink/util/AesUtil.java @@ -54,7 +54,6 @@ public class AesUtil { // 9.加密 return new String(Base64.encodeBase64(cipher.doFinal(contentByte))); } catch (Exception e) { - e.printStackTrace(); throw new AesEncodeException(e.getMessage(), e); } } @@ -88,7 +87,6 @@ public class AesUtil { // 8.解密 return new String(cipher.doFinal(contentByte), "UTF-8"); } catch (Exception e) { - e.printStackTrace(); throw new AesDecodeException(e.getMessage(), e); } } @@ -105,7 +103,6 @@ public class AesUtil { byte[] encryptedBytes = aesCommonEncodeDetail(key, content, IV_STRING.getBytes(), PKCS_5); return new String(Base64.encodeBase64(encryptedBytes), "UTF-8"); } catch (Exception e) { - e.printStackTrace(); throw new AesEncodeException(e.getMessage(), e); } } @@ -131,7 +128,6 @@ public class AesUtil { cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec); return cipher.doFinal(byteContent); } catch (Exception e) { - e.printStackTrace(); throw new AesEncodeException(e.getMessage(), e); } } @@ -151,7 +147,6 @@ public class AesUtil { byte[] result = aesCommonDecoderDetail(keyBytes, encryptedBytes, IV_STRING.getBytes(), PKCS_5); return new String(result, "UTF-8"); } catch (Exception e) { - e.printStackTrace(); throw new AesDecodeException(e.getMessage(), e); } @@ -178,7 +173,6 @@ public class AesUtil { cipher.init(Cipher.DECRYPT_MODE, secretKey, ivParameterSpec); return cipher.doFinal(encryptedBytes); } catch (Exception e) { - e.printStackTrace(); throw new AesDecodeException(e.getMessage(), e); } }