Skip to content

Commit cd21f59

Browse files
authored
Merge pull request #309 from Tejas1510/password
Added the code for to find Strength of password
2 parents aefcc3a + 9114da0 commit cd21f59

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

Diff for: Python/PasswordStrenght/Readme.MD

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Password Strength Checer
2+
3+
## Inroduction
4+
```
5+
It is a simple Password Strength checker which gives the strength of your password.
6+
Here I have used the re(regular expression) module.
7+
```
8+
## How to use it :
9+
1. Download or clone the repository
10+
2. Install Required Libraries
11+
3. Run password.py
12+
4. Enter you Password
13+
5. The Strength of your password will be shown
14+
15+
### Output
16+
Here I have explained all the output in the below image
17+
18+
![endpoint](https://github.com/Tejas1510/hacking-tools-scripts/blob/password/Python/PasswordStrenght/images/image1.png)
19+
20+
![built with love](https://forthebadge.com/images/badges/built-with-love.svg)
21+
22+
Check out my Github profile [Tejas1510!](https://github.com/Tejas1510)

Diff for: Python/PasswordStrenght/images/image1.png

206 KB
Loading

Diff for: Python/PasswordStrenght/password.py

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import re
2+
p = input("Please enter a passowrd for checking its Strenght : ")
3+
count=0
4+
if(len(p)>=6):
5+
count=count+1
6+
if(re.search("[a-z]",p)):
7+
count=count+1
8+
if(re.search("[A-Z]",p)):
9+
count=count+1
10+
if(re.search("[$#@]",p)):
11+
count=count+1
12+
if(re.search("[0-9]",p)):
13+
count=count+1
14+
if(count==1):
15+
print("The Password is Poor")
16+
elif(count==2):
17+
print("The Password is Fair")
18+
elif(count==3):
19+
print("The Password is Good")
20+
elif(count==4):
21+
print("The Password is Strong")
22+
elif(count==5):
23+
print("The Password is Very Strong")
24+
else:
25+
print("INVALID PASSWORD")

0 commit comments

Comments
 (0)