13 class PasswordChecker: |
13 class PasswordChecker: |
14 """ |
14 """ |
15 Class implementing a checker for password strength. |
15 Class implementing a checker for password strength. |
16 """ |
16 """ |
17 |
17 |
|
18 # TODO: change this to an enum |
18 Complexity_VeryWeak = 0 |
19 Complexity_VeryWeak = 0 |
19 Complexity_Weak = 1 |
20 Complexity_Weak = 1 |
20 Complexity_Good = 2 |
21 Complexity_Good = 2 |
21 Complexity_Strong = 3 |
22 Complexity_Strong = 3 |
22 Complexity_VeryStrong = 4 |
23 Complexity_VeryStrong = 4 |
23 |
24 |
|
25 # TODO: change this to an enum |
24 Status_Failed = 0 |
26 Status_Failed = 0 |
25 Status_Passed = 1 |
27 Status_Passed = 1 |
26 Status_Exceeded = 2 |
28 Status_Exceeded = 2 |
27 |
29 |
28 def __init__(self): |
30 def __init__(self): |