Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在验证密码。我需要检查密码中有多少个字母和数字。如果少于 2 个数字或少于 2 个字母,则应警告用户密码无效。
对于密码中的每个字符,检查 ASCII 表并计算出现的字母和数字:
考虑在验证中添加特殊字符。