判断你设置的密码的强度
2016-11-18 12:45
176 查看
def judgePasswordStrength(password): strengthLength = max(0, len(password) - 5) from string import ascii_lowercase, ascii_uppercase, digits, punctuation flags = [bool(set(password) & set(s)) \ for s in [ascii_lowercase, ascii_uppercase, digits, punctuation]] return min(flags.count(True), strengthLength)
相关文章推荐
- C#中判断密码字符强度 并设置对应颜色
- IOS - 判断密码设置强度
- Javascript 密码强度设置
- 用于判断用户注册时,密码强度的JS代码
- 密码强度判断规则(仿google)
- JQuery 实现对 密码强度的判断
- js判断密码强度
- jQuery判断密码强度
- [xml,jsp]仿google密码强度判断
- javascript密码强度判断
- js 判断用户输入的密码强度
- jQuery判断密码强度实现思路及代码
- JavaScript密码强度判断
- Js密码强度设置
- Javascript 密码强度设置 脚本
- js判断密码强度
- 用于判断用户注册时,密码强度的JS代码
- CP How-To:如何设置符合强度要求的密码
- Ajax判断用户名是否重复、二级联动、Ajax判断密码强度
- 判断密码强度的简单方式