Skip to content

Instantly share code, notes, and snippets.

@IAmStoxe
Created November 6, 2019 19:46
Show Gist options
  • Save IAmStoxe/b04fe2eb3986f91564c018171a300073 to your computer and use it in GitHub Desktop.
Save IAmStoxe/b04fe2eb3986f91564c018171a300073 to your computer and use it in GitHub Desktop.
Brute Force Iteration of Given Set of Characters
import itertools
min_length = 5
max_length = 10
char_set = 'abcdefghijklmnopqrstuvwxyz1234567890-'
for n in range(min_length, max_length + 1):
for xs in itertools.product(char_set, repeat=n):
chars = ''.join(xs)
print(chars)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment