From 3477046445264ab06bb66972aca69566caa11ae1 Mon Sep 17 00:00:00 2001
From: chenjiahe <763432473@qq.com>
Date: 星期三, 09 二月 2022 17:54:26 +0800
Subject: [PATCH] Mysql数据库AES加密工具,解密的时候判断是不是16进制的数据

---
 src/main/java/com/hx/util/mysql/aes/MysqlHexAesTool.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/hx/util/mysql/aes/MysqlHexAesTool.java b/src/main/java/com/hx/util/mysql/aes/MysqlHexAesTool.java
index 8ac6a9c..85c1da4 100644
--- a/src/main/java/com/hx/util/mysql/aes/MysqlHexAesTool.java
+++ b/src/main/java/com/hx/util/mysql/aes/MysqlHexAesTool.java
@@ -65,6 +65,9 @@
             if(data == null){
                 return null;
             }
+            if(!isHexStrValid(data)){
+                return data;
+            }
             if (StringUtils.isEmpty(encoding)) {
                 encoding = "UTF-8";
             }

--
Gitblit v1.8.0