init python

This commit is contained in:
2025-07-24 21:47:54 +02:00
parent 33fc237cb8
commit 27ca4dfce3
6 changed files with 472 additions and 0 deletions

5
bin/lib/utils.py Normal file
View File

@@ -0,0 +1,5 @@
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