[Tutor] Simple PassGen
ksarikhani at gmail.com
Mon Feb 9 22:35:12 CET 2009
I've been messing around with a simple password generation script...no
real crypto or anything, but a little stumped on the output.
import random, string
pool = string.digits + string.letters + string.punctuation
for i in range(8):
This seems to do the job, but it lists the output with newlines, perhaps.
I thought that maybe adding "print random.choice(pool).strip()" might work
but not having any luck with that. Is the output this way, simply because of
the nature of the range, or can anyone point my in the right direction?
Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor