Files
KazV2/bin/lib/utils.py
2025-07-24 21:47:54 +02:00

6 lines
216 B
Python

def generate_password(self):
cmd="apg -n 1 -m 10 -M NCL -d"
output = subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
new_password="_"+output.decode("utf-8")+"_"
return new_password