Random passwords generation (Python vs Perl) =)

Paul Rubin http
Mon Jan 29 10:08:48 EST 2007


"Szabolcs Nagy" <nszabolcs at gmail.com> writes:
> file('/dev/urandom').read(6).encode('base64')
> (oneliner and without import sa op requested)

Nice, though Un*x dependent (os.urandom is supposed to be portable).



More information about the Python-list mailing list