SHA1

sha1sum {file}
sha1sum {file} > {file}.sha1
sha1sum -c {file}.sha1
echo '66a50545358e80229d77ebba89ab01f1c0fb4a02 raspbian.zip' | sha1sum -c -