From charlesreid1

Notes on verifying downloaded files.

MD5 sum

Be warned, md5 signatures are relatively easy to spoof.

openssl dgst -md5 filename

SHA256 sum

openssl dgst -sha256 filename

Example:

$ openssl dgst -sha256 kali-linux-2017.3-amd64.iso
SHA256(kali-linux-2017.3-amd64.iso)= 395bc0af107806e5bf06edc6ac4af1f96caaf04f465831abf2f33ce51b73968d

Flags