liujie
2025-08-19 de6b1898b4ff8579adde95a37ff0b411d17f5536
ruoyi-common/src/main/java/com/ruoyi/common/utils/SecurityUtils.java
@@ -178,11 +178,12 @@
    }
    public static void main(String[] args) {
        System.out.println("19923261698".substring(5, 11));
        String hash = Md5Utils.hash("123456");
        System.out.println(hash);
        System.out.println(encryptPassword(hash));
        System.out.println(matchesPassword(hash, "$2a$10$VhdvkOtOTUq1NndvwPC36./D9bPVhDJWbt.tVWtGdqW3.sA07Ikx."));
        System.out.println(matchesPassword(hash, "$2a$10$rk6XzddjDljPCCTghplExe2rgcLCJHVEEOAOuUaHalsIp/FCWObkG"));
    }
}