Checksum and hash utilities
Checksum tools
MD5 (Message digest algorithm)
md5SHA 1/256/512 (Secure hash Algorithm)
shasum
shasum -a 256
shasum -a 512File usage
md5 <file>
shasum <file>
cat <file> | md5
cat <file> | shasumString input usage
echo <string> | md5
echo <string> | shasumCyclic redundancy tools
CRC (Cyclic redundancy check)
crc32 <file>Securely generate a hash locally from text input
Allows using command line to generate hash without logging input to shell history
Replace
shasumwith any of the checksum variants to generate the required hash
Bash version
read -sp 'Input: ' input; echo; echo -n 'Output: '; echo -n "$input" | shasum; unset inputFish version
read -sP 'Input: ' input; echo -n 'Output: '; echo -n "$input" | shasum; set -e inputLast updated