Simple python code to generate SHA512 encrypted password

Confirmed working on CentOS7.6/Python2.7.
Replace ‘password’ with your password, and change $saltsome if you want different pharase.

python -c "import crypt, getpass, pwd; print crypt.crypt('password', '\$6\$saltsome\$')"