Skip to content

Instantly share code, notes, and snippets.

@mouseroot
Last active August 15, 2018 05:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mouseroot/ad5e496fe654c7ac3376f2bc21a626ec to your computer and use it in GitHub Desktop.
Save mouseroot/ad5e496fe654c7ac3376f2bc21a626ec to your computer and use it in GitHub Desktop.
Python 3.7 Password/Hash Generator
import random
def generate_hash(size=10):
alpha = [p for p in "aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ0123456789_"]
return "".join([random.choice(alpha) for _ in range(size)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment