Library / Function to tell the user how secure their password is?

I need to tell the user whether his password is strong or weak (or between). Is there a library or function that already does this?

If this is not the case, what is the best approach to determine if a password is secure?

+6
security c #
source share
2 answers

KeePass has a password strength feature. You can download the source zip file from here . The file you are looking for is called QualityEstimation in KeePassLib.Cryptography.

+3
source share

You can check out some articles in CodeProject. 1) http://www.codeproject.com/KB/edit/PasswordStrengh.aspx 2) http://www.codeproject.com/KB/security/passworddialog.aspx

A simple approach is to evaluate some regular expressions to check if it contains uppercase and lowercase letters, numbers, special characters, and password length.

+2
source share

All Articles