I'm attempting to generate all the possible passwords with lengths between 1-5 characters, where the possible characters are the lowercase alphabet, uppercase alphabet and 10 digits.
For the sake of keeping things simple, I'm restricting the possible characters to just the lowercase alphabet and the ten digits, and the lengths of the passwords to just 3-5 characters.
import itertools
charMix = list("abcdefghijklmnopqrstuvwxyz1234567890")
mix = []
for length in range(3, 6):
temp = [''.join(p) for p in itertools.product(charMix, repeat=length)]
mix.append(temp)
However, I'm running into memory errors on the temp
assignment line and don't know how to overcome them :(
Is there a way to generate these passwords without memory errors?