What is the best way to check the strength of a password?

后端 未结 15 1267
孤独总比滥情好
孤独总比滥情好 2020-12-02 10:41

What is the best way of ensuring that a user supplied password is a strong password in a registration or change password form?

One idea I had (in python)

<         


        
15条回答
  •  旧巷少年郎
    2020-12-02 11:27

    What is the best way of ensuring that a user supplied password is a strong password in a registration or change password form?

    Don't evaluate complexity and or strength, users will find a way to fool your system or get so frustrated that they will leave. That will only get you situations like this. Just require certain length and that leaked passwords aren't used. Bonus points: make sure whatever you implement allows the use of password managers and/or 2FA.

提交回复
热议问题