Is this secure?

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Tue Feb 23 18:18:19 EST 2010


In message <mailman.110.1266935711.4577.python-list at python.org>, mk wrote:

> I need to generate passwords and I think that pseudo-random generator is
> not good enough, frankly. So I wrote this function:

Much simpler:

import subprocess

data, _ = subprocess.Popen \
  (
    args = ("pwgen", "-nc"),
    stdout = subprocess.PIPE
  ).communicate()
print data




More information about the Python-list mailing list