12 lines
215 B
Python
Executable File
12 lines
215 B
Python
Executable File
#!/usr/bin/python3
|
|
|
|
import argparse
|
|
import crypt
|
|
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument('password')
|
|
args = parser.parse_args()
|
|
|
|
print(crypt.crypt(args.password, crypt.mksalt(crypt.METHOD_SHA512)))
|
|
|