Check a File Hash

Windows:

  1. Open PowerShell.
  2. To get the SHA-256 for a file: get-filehash <filename>.

To use a different algorithm, e.g. MD5: get-filehash -Algorithm MD5 <filename>.

macOS:

  1. Open Terminal.
  2. shasum -a 256 <filename>.

Linux:

  1. Open Terminal.
  2. sha256sum <filename>.

For MD5 use md5sum <filename>.