On Tue, May 7, 2013 at 1:47 PM, Luiji Maryo <lu...@users.sourceforge.net> wrote: > Behold my ultimate password generator in Python: > > import random, string > p = "" > for i in range(0, 20): p += random.choice(string.printable) > print p # print(p) in python 3 > > That works like a charm on virtually everything I've ever wanted a secure > password on, including Savannah.
We're digressing a bit here, but I don't believe you actually tried the above more than a few times. Just because a character is printable doesn't mean you can find it on a keyboard. >>> string.printable '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c' Good luck with a password consisting of a vertical tab, form-feed and carriage return :-). Jan P.S. The dollar symbol isn't on all keyboards, so I'd also remove it from the list of acceptable characters.