You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#program to check password strength. A strong password needs to be at least 8 chars long, have both upper and lowercase chars and have some special characters as well.
2
+
importstring
3
+
4
+
defStrength(password):
5
+
6
+
n=len(password)
7
+
8
+
hasLower=False
9
+
hasUpper=False
10
+
hasDigit=False
11
+
specialChar=False
12
+
p=string.ascii_letters+string.digits#contains all alphabets(in lower & upper case) and digits (0-9)
0 commit comments