Files
sunhpc/sbin/gen_root_pw
2023-10-08 20:59:00 +08:00

11 lines
196 B
Python
Executable File

#!/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())