Updated: 23 April 2023
Hash a file
md5sum filename
shasum filename
sha1sum filename
sha256sum filename
openssl sha256 filename
Hash the string foo from the command line
echo -n foo | md5sum
Create a handy 8 character, unique string
echo -n $(uuidgen) | sha1sum | cut -c1-8