This commit is contained in:
Bart Sjerps
2026-06-10 12:02:38 +02:00
parent 7d7938fcc7
commit e49e2d3909
4 changed files with 66 additions and 21 deletions
+4 -2
View File
@@ -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)))