From 1dac2263372df2b85db5d029a45721fa158a5c9d Mon Sep 17 00:00:00 2001 From: xiubuzhe Date: Sun, 8 Oct 2023 20:59:00 +0800 Subject: first add files --- sbin/gen_root_pw | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 sbin/gen_root_pw (limited to 'sbin/gen_root_pw') diff --git a/sbin/gen_root_pw b/sbin/gen_root_pw new file mode 100755 index 0000000..ec8c378 --- /dev/null +++ b/sbin/gen_root_pw @@ -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()) -- cgit v1.2.3