I have a project in school where we are going to brute force a password, and we have gotten a list of passwords. The password is a combination of two words on the list, so we have to make this list ourselves.
I have tried this, using itertools:
list_of_letters = open("passwords.txt").readlines()
for word in itertools.permutations(list_of_letters):
print(''.join(word))
But I get a file of 18,9 GB, and even that wasn't enough, due to me not having any more space on my device, as it will need space for 1 mill passwords. Therefore I need to split up this into several files, preferably like 3GB each. How can I do this, and still get all of the combination? I was thinking of dividing the original password-file, but then I will not get all of the combinations.