Skip to content

jcg9487/JCGPasswordStrength

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JCGPasswordStrength

密码强度算法,参考文章

基于密码得分来判断密码的强度,根据实际业务进行分数段的取舍。

NSInteger score =  [[PasswordStrengthUtil sharedInstance] passwordStrengthWith:currentText];

具体的密码强度判断,可以自定义分数范围来确定。

例如

score < 60 弱

score < 80 中

score >= 80 强

支持cocoapods

pod 'JCGPasswordStrength'