chenjiahe
2022-08-19 e7c3ff19f5abea1f1510503b46f99c6ad3870410
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();
    }