src/main/java/com/hx/util/mysql/aes/MysqlHexAesTool.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/hx/util/mysql/aes/MysqlHexAesTool.java
@@ -93,9 +93,14 @@ * @return true or false */ public static boolean isHexStrValid(String str) { if(str == null){ return false; } //是否32位倍数 if(str.length()%32 != 0){ return false; } String pattern = "^[0-9A-F]+$"; return Pattern.compile(pattern).matcher(str).matches(); }