# Passwords
Things about passwords
# Create a password using a command
Some versions may use sha512crypt
instead of sha-512
. substitute as necessary.
mkpasswd -m sha-512 -s <<< <Password>
# Create a Linux password hash using Python
One-liner that can be pasted in to the terminal, this will prompt for a password to create a hash for.
python -c 'import crypt,getpass; print(crypt.crypt(getpass.getpass(),crypt.mksalt(crypt.METHOD_SHA512)))'