Skip to content

Instantly share code, notes, and snippets.

@qoda
qoda / password_generator.py
Created January 10, 2012 13:26
Generate a random, but somewhat readable password.
#!/usr/bin/env python
from random import choice
from string import ascii_lowercase, ascii_uppercase, digits
from sys import argv
VOWELS = ['a', 'e', 'i', 'o', 'u']
CONSONANTS = [l for l in ascii_lowercase if l not in VOWELS]
FIRST = choice([l for l in ascii_uppercase if l.lower() not in VOWELS])