Files

12 lines
215 B
Python
Raw Permalink Normal View History

2026-06-09 16:20:53 +02:00
#!/usr/bin/python3
import argparse
import crypt
2026-06-10 12:02:38 +02:00
parser = argparse.ArgumentParser()
parser.add_argument('password')
args = parser.parse_args()
2026-06-09 16:20:53 +02:00
2026-06-10 12:02:38 +02:00
print(crypt.crypt(args.password, crypt.mksalt(crypt.METHOD_SHA512)))
2026-06-09 16:20:53 +02:00