Password strength tester. Find out how long time a pro hacker would use to crack your password
+171

PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Code complexity source: https://www.inetsolution.com/blog/june-2012/complex-passwords-harder-to-crack,-but-it-may-not
# Common passwords source: http://www.huffingtonpost.com/entry/2016-most-common-passwords_us_587f9663e4b0c147f0bc299d
# Version 1.0 Created
# Version 1.1 Fixed bug when checking for common passwords that contained symbol
# Version 1.2 Corrected bad grammer
'''
Coded by Bjarte Mehus Sunde (c) 2017
The original code can be found here:
https://code.sololearn.com/cGiP2gpu0Qn1/?ref=app
'''
import re
class PasswordTester():
def __init__(self):
# lower case
self.p1 = re.compile('[a-z]')
# upper case
self.p2 = re.compile('[A-Z]')
# numbers
self.p3 = re.compile('[0-9]')
# symbols
self.p4 = re.compile('[^A-z0-9]')
# length 5
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run