chenjiahe
2023-05-31 7f9b53d982c0210ffc25db3a639bd858fc5db79b
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();
    }