- This Page shows how to make a SHA-512 hash. This is needed for creating a hash of a SysAdmin user account password as it allows other SysAdmins to set each other's passwords without knowing what the password is.
- A Linux or Mac computer.
- Linux: The
mkpasswodbinary (found in the whois package). - Mac:
Python3andpasslib
- Linux: The
- Open Terminal.
- Make sure
mkpasswdis installed:sudo apt install -y whois - Run
mkpasswd -m sha-512. - Type in whatever it is you want to hash and press return or Enter.
- Terminal will print out the SHA-512 hash.
- Open Terminal.
- Make sure
passlibis installed:pip3 install passlib - Generage the password hash:
python3 -c "from passlib.hash import sha512_crypt; import getpass; print(sha512_crypt.using(rounds=5000).hash(getpass.getpass()))" - Type in whatever it is you want to hash and press return or Enter.
- Terminal will print out the SHA-512 hash.