(target_password, max_length=8)
| 10 | |
| 11 | |
| 12 | def password_cracker(target_password, max_length=8): |
| 13 | # Try different password lengths and generate permutations |
| 14 | for length in range(1, max_length + 1): |
| 15 | password_generator = generate_password_permutations(length) |
| 16 | for password in password_generator: |
| 17 | if password == target_password: |
| 18 | return password |
| 19 | return None |
| 20 | |
| 21 | |
| 22 | if __name__ == "__main__": |
no test coverage detected