Random passwords generation (Python vs Perl) =)

Paul Rubin http
Mon Jan 29 16:08:48 CET 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