first add files
This commit is contained in:
10
sbin/gen_root_pw
Executable file
10
sbin/gen_root_pw
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import crypt
|
||||
import string
|
||||
import random
|
||||
def get_pw():
|
||||
pw = random.random()
|
||||
return crypt.crypt(str(pw))
|
||||
if __name__ == '__main__':
|
||||
print (get_pw())
|
||||
Reference in New Issue
Block a user