update
This commit is contained in:
+4
-2
@@ -3,7 +3,9 @@
|
||||
import argparse
|
||||
import crypt
|
||||
|
||||
passwd='yahooo'
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('password')
|
||||
args = parser.parse_args()
|
||||
|
||||
print(crypt.crypt(passwd, crypt.mksalt(crypt.METHOD_SHA512)))
|
||||
print(crypt.crypt(args.password, crypt.mksalt(crypt.METHOD_SHA512)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user