Skip to content

Instantly share code, notes, and snippets.

@drola
Last active June 18, 2021 07:06
Show Gist options
  • Save drola/120edbb9bc7300cb15c602b25ef67839 to your computer and use it in GitHub Desktop.
Save drola/120edbb9bc7300cb15c602b25ef67839 to your computer and use it in GitHub Desktop.
generate_password.py
#!/usr/bin/env python3
import random
characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%&*1234567890"
print(''.join([random.choice(characters) for i in range(0, 32)]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment