Skip to content

Instantly share code, notes, and snippets.

@mxsgx
Created October 3, 2022 07:33
Show Gist options
  • Save mxsgx/61ccd76d69e7233ff13ffc167e114d85 to your computer and use it in GitHub Desktop.
Save mxsgx/61ccd76d69e7233ff13ffc167e114d85 to your computer and use it in GitHub Desktop.
from itertools import permutations
import string
with open('passwords.txt', 'w+') as file:
for password in permutations(string.ascii_letters + string.digits, 5):
file.write("{0}\n".format("".join(password)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment