Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c#

security

I need to be able to tell the user if their password is strong or weak (or in between). Is there a library or a function that already does this?

If there isn't, what would be the best approach to determining if a password is secure or not?

like image 536
Malfist Avatar asked May 26 '10 14:05

Malfist


People also ask

How is password strength measured?

Generally speaking, the strength of a password is determined by three things: the length of the character set used, the length of the password itself, and to a lesser extent, the variety in characters chosen.

How do I ask for a password in Python?

Using getpass() function to prompt user password The getpass() function is used to prompt to users using the string prompt and reads the input from the user as Password. The input read defaults to “Password: ” is returned to the caller as a string. Here, no prompt is provided by the caller.


1 Answers

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

like image 182
Jeremy Wiebe Avatar answered Nov 15 '22 01:11

Jeremy Wiebe