# weak_password **Repository Path**: jaco2016/weak_password ## Basic Information - **Project Name**: weak_password - **Description**: No description available - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-17 - **Last Updated**: 2024-07-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 使用例子 CheckPassword.main就是例子 主要使用过程创建caffeine缓存(使用的软引用,便于内存不够时候及时清理) 利用cacheCaffeine.get(key, k -> CheckPassword.create(key))来初始化 使用ClassPathResource classPathResource = new ClassPathResource(path);方法将resource/filtered_weak_pass.txt加载为字符串并缓存 使用CheckPwdUtils.EvalPWD(password)来验证是否是大小写字母数字特殊符号四选三。特殊符号包括:!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~,请在PwdSecurityConfig.SPECIAL_CHAR中自行设置。很多配置项可以在PwdSecurityConfig中进行配置。 判断是否是弱密码除了判断四选三,还要判断是否在弱密码字典filtered_weak_pass.txt中,如果都不是则判断为强密码。