Password Hash Generation for Linux (Python >= 3.3)
Taken from https://unix.stackexchange.com/a/76337 and put here for convenience.
Replace "somesecret" with your password. This script can be run on the command line by placing the code inline like this:
$ python -c 'import crypt; print(crypt.crypt("somesecret", crypt.mksalt(crypt.METHOD_SHA512)))'