Last active
August 15, 2018 05:35
-
-
Save mouseroot/ad5e496fe654c7ac3376f2bc21a626ec to your computer and use it in GitHub Desktop.
Python 3.7 Password/Hash Generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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