#Python passwordstrength module#
##What does it do?##
It checks a passwords strength using several rules based on the ones found at Wolfram Alpha Password Strength Checker.
##Aim##
To provide a reliable module for calculating the strength score of a password.
##Installation##
###Using pip
###
To get the latest source via pip, use
pip install -e git+https://github.com/gkbrk/passwordstrength.git#egg=passwordstrength
###From Source###
- Download and extract this repo
- Open a Terminal or Command Prompt in this new folder.
- Enter:
Linux:
sudo python setup.py install
Windows:
python setup.py install
##Usage##
In a Python Script:
import passwordstrength
strength = passwordstrength.passwordstrength("hello-world")
score = strength.get_score()
readable_score = strength.get_readable_score()
In the Terminal or Command Prompt:
passwordstrength [-h] [-r] [-v]
optional arguments:
-h, --help show this help message and exit
-r, --readable Outputs the english score.
-v, --verbose Outputs a scoring table.
##Score Calculation Rules##
- A good length - Done!
- Upper-case letters - Done!
- Lower-case letters - Done!
- Numbers - Done!
- Special Characters - Done!
- Middle numbers or special characters - Done!
- Not letters only - Done!
- Not numbers only - Done!
- No repeating characters - Done!
- No consecutive upper-case letters - Done!
- No consecutive lower-case letters - Done!
- No consecutive numbers - Done!
- No sequential letters - Done!
- No sequential numbers - Done!
- No dictionary words - Done!
##To do's##
- Accept a list of passwords
- Output a list of passwords + their score