Skip to content

Added the code for to find Strength of password #309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Python/PasswordStrenght/Readme.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Password Strength Checer

## Inroduction
```
It is a simple Password Strength checker which gives the strength of your password.
Here I have used the re(regular expression) module.
```
## How to use it :
1. Download or clone the repository
2. Install Required Libraries
3. Run password.py
4. Enter you Password
5. The Strength of your password will be shown

### Output
Here I have explained all the output in the below image

![endpoint](https://github.com/Tejas1510/hacking-tools-scripts/blob/password/Python/PasswordStrenght/images/image1.png)

![built with love](https://forthebadge.com/images/badges/built-with-love.svg)

Check out my Github profile [Tejas1510!](https://github.com/Tejas1510)
Binary file added Python/PasswordStrenght/images/image1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions Python/PasswordStrenght/password.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import re
p = input("Please enter a passowrd for checking its Strenght : ")
count=0
if(len(p)>=6):
count=count+1
if(re.search("[a-z]",p)):
count=count+1
if(re.search("[A-Z]",p)):
count=count+1
if(re.search("[$#@]",p)):
count=count+1
if(re.search("[0-9]",p)):
count=count+1
if(count==1):
print("The Password is Poor")
elif(count==2):
print("The Password is Fair")
elif(count==3):
print("The Password is Good")
elif(count==4):
print("The Password is Strong")
elif(count==5):
print("The Password is Very Strong")
else:
print("INVALID PASSWORD")