The Password Strength Checker is a Python script that assesses the strength of passwords based on various criteria such as length, complexity, common patterns, and known weak passwords. It calculates the entropy of a password to estimate its strength and provides recommendations for stronger passwords.
- Checks the strength of a password based on length, complexity, and patterns.
- Considers common weak patterns and known weak passwords in the evaluation.
- Provides recommendations for stronger passwords based on the assessment.
- Securely prompts the user to enter the password without displaying it on the screen.
- Python 3.x
-
Clone this repository to your local machine or download the script file.
-
Open a terminal or command prompt and navigate to the directory where the script is located.
-
Run the script using the following command:
python ps-checker-v2.py
-
Follow the prompts to enter the password you want to check.
-
The script will evaluate the strength of the password and display a recommendation.
- The script does not store or transmit any passwords. The evaluation is performed locally on your system.
- The user input for the password is securely handled without displaying it on the screen.
Entropy is used as a metric to estimate the strength of a password. It calculates the information content and randomness of the password based on the character sets used and the password length.
-
Weak Patterns: To customize the list of weak patterns, you can modify the
weak_patterns
list in theis_weak_password()
function. -
Weak Passwords Wordlist: If you want to update or modify the wordlist of weak passwords, edit the
weak_passwords.txt
file, adding or removing passwords as needed. Each password should be on a separate line.
Here are a few notable ones you can check:
SecLists (https://github.com/danielmiessler/SecLists): SecLists is a collection of multiple security-related lists, including various password lists. It provides a wide range of password patterns and common weak passwords that can be useful for testing and analysis.
Probable-Wordlists (https://github.com/berzerk0/Probable-Wordlists): Probable-Wordlists is a collection of password wordlists and patterns generated from different sources. It includes common passwords, dictionary words, and various permutations that can help identify weak passwords.
Weakpass (https://github.com/Josue87/weakpass): Weakpass is a repository that contains weak password lists categorized by types such as common passwords, leaked passwords, and specific patterns. It can be useful for analyzing weak password usage trends.
Contributions to the Password Strength Checker script are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.
The Password Strength Checker script is released under the Unlicense, a public domain dedication that allows you to use, modify, and distribute the script freely without any restrictions. See the UNLICENSE
file for more information.