如何评估PHP中的密码强度检测方法?
- 内容介绍
- 文章标签
- 相关推荐
本文共计106个文字,预计阅读时间需要1分钟。
php=8) $score +=1;if (preg_match('/[a-z]/', $password)) $score +=1;if (preg_match('/[A-Z]/', $password)) $score +=1;if (preg_match('/[0-9]/', $password)) $score +=1;if (preg_match('/[^a-zA-Z0-9]/', $password)) $score +=1;echo $score;?>
php密码强度检测= 10) { $score ++; } echo $score;
本文共计106个文字,预计阅读时间需要1分钟。
php=8) $score +=1;if (preg_match('/[a-z]/', $password)) $score +=1;if (preg_match('/[A-Z]/', $password)) $score +=1;if (preg_match('/[0-9]/', $password)) $score +=1;if (preg_match('/[^a-zA-Z0-9]/', $password)) $score +=1;echo $score;?>
php密码强度检测= 10) { $score ++; } echo $score;

