Last active
September 27, 2015 07:27
-
-
Save eloyz/1232990 to your computer and use it in GitHub Desktop.
Password Generator (with human friendly characters)
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
def password_generator(length=8): | |
from random import choice | |
from string import letters, digits | |
doppelgangers = set('io10szSZOIl25uvUV') | |
alphanums = set(letters+digits) | |
chars = list(doppelgangers - alphanums) | |
return ''.join([choice(chars) for i in range(length)]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment