init python
This commit is contained in:
5
bin/lib/utils.py
Normal file
5
bin/lib/utils.py
Normal 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
|
Reference in New Issue
Block a user