Category: Python
Author: Andrew Published Date: May 16, 2017 Leave a Comment on Create a SHA512 encrypted password suitable for /etc/passwd
Create a SHA512 encrypted password suitable for /etc/passwd
python3 -c ‘import crypt,getpass; print(crypt.crypt(getpass.getpass(), crypt.mksalt(crypt.METHOD_SHA512)))’