From 0de2edd06892770c5c4562e6a9118b2fb9806738 Mon Sep 17 00:00:00 2001 From: zhangxu <3%usVi4iXbVkhI1c> Date: 星期四, 10 二月 2022 14:43:26 +0800 Subject: [PATCH] MySQLASE解密 --- src/main/java/com/hx/util/mysql/aes/MysqlHexAesTool.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 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 85c1da4..54372d2 100644 --- a/src/main/java/com/hx/util/mysql/aes/MysqlHexAesTool.java +++ b/src/main/java/com/hx/util/mysql/aes/MysqlHexAesTool.java @@ -41,6 +41,9 @@ if(data == null){ return null; } + if(!isHexStrValid(data)){ + return data; + } if(StringUtils.isEmpty(encoding)){ encoding = "UTF-8"; } @@ -65,9 +68,7 @@ if(data == null){ return null; } - if(!isHexStrValid(data)){ - return data; - } + if (StringUtils.isEmpty(encoding)) { encoding = "UTF-8"; } -- Gitblit v1.8.0