From 99a29e294c6150aaa8369c592a3bbb91defe58fd Mon Sep 17 00:00:00 2001
From: chenjiahe <763432473@qq.com>
Date: 星期五, 07 一月 2022 11:46:52 +0800
Subject: [PATCH] 添加Mysql数据库的AES加解密方法(报错处理)

---
 src/main/java/com/hx/util/mysql/aes/MysqlHexAes.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/hx/util/mysql/aes/MysqlHexAes.java b/src/main/java/com/hx/util/mysql/aes/MysqlHexAes.java
index 7ab145b..2043272 100644
--- a/src/main/java/com/hx/util/mysql/aes/MysqlHexAes.java
+++ b/src/main/java/com/hx/util/mysql/aes/MysqlHexAes.java
@@ -45,7 +45,7 @@
             decryptCipher.init(Cipher.DECRYPT_MODE, generateMySQLAESKey(aesKey, encoding));
             data = new String(decryptCipher.doFinal(Hex.decodeHex(data.toCharArray())));
         }catch (Exception e){
-            throw new RuntimeException("瑙e瘑澶辫触锛�"+e.getMessage());
+            throw new RuntimeException(e);
         }
         return data;
     }
@@ -71,7 +71,7 @@
             }
             data = builder.toString().toUpperCase();
         } catch (Exception e) {
-            throw new RuntimeException("鍔犲瘑澶辫触锛�"+e.getMessage());
+            throw new RuntimeException(e);
         }
         return data;
     }

--
Gitblit v1.8.0