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

Function generate_password_permutations

numeric_password_cracker.py:4–9  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

2
3
4def generate_password_permutations(length):
5 # Generate numeric password permutations of the given length
6 digits = "0123456789"
7 for combination in itertools.product(digits, repeat=length):
8 password = "".join(combination)
9 yield password
10
11
12def password_cracker(target_password, max_length=8):

Callers 1

password_crackerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected