Skip to content

Commit 8591e3b

Browse files
committed
Detector
Uses a regular expression and tells use whether the given input is a strong or weak password.
1 parent 73eb0f7 commit 8591e3b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

project2.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Strong Password Detection using regular expression
2+
3+
import re
4+
5+
def strong_pass(Password):
6+
7+
8+
if re.match(r'([a-zA-Z0-9]).{8,}', Password) is not None:
9+
print ('Strong Password')
10+
else:
11+
print ('Weak Password')
12+
13+
14+
15+
16+

0 commit comments

Comments
 (0)