51 |
length = ucr.get('machine/password/length', '20') |
51 |
length = ucr.get('machine/password/length', '32') |
52 |
compl = ucr.get('machine/password/complexity', 'scn') |
52 |
compl = ucr.get('machine/password/complexity', 'scn') |
53 |
p = subprocess.Popen(["pwgen", "-1", "-" + compl, length], stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
53 |
p = subprocess.Popen(["pwgen", "-1", "-" + compl, length], stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
54 |
(stdout, stderr) = p.communicate() |
54 |
(stdout, stderr) = p.communicate() |