Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python -c crypt command in python3.3 and above

$ python -c 'import crypt,getpass; print(crypt.crypt(getpass.getpass(), crypt.mksalt(crypt.METHOD_SHA512)))'
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #python #crypt #command
ADD COMMENT
Topic
Name
3+4 =