]>
code.delx.au - monosys/blob - scripts/passwdgen
3 import random
, string
, sys
5 chars
= filter(lambda x
: not x
.isspace(), string
.printable
)
7 return "".join([random
.choice(chars
) for i
in xrange(length
)])
9 if __name__
== "__main__":
13 print "Usage: %s length" % sys
.argv
[0]