MCPcopy Create free account
hub / github.com/geekcomputers/Python / password_cracker

Function password_cracker

numeric_password_cracker.py:12–19  ·  view source on GitHub ↗
(target_password, max_length=8)

Source from the content-addressed store, hash-verified

10
11
12def 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
22if __name__ == "__main__":

Callers 1

Calls 1

Tested by

no test coverage detected