Cloud and security

Check a file's checksum

Make sure a download wasn't corrupted or tampered with, by comparing its SHA-256 hash.

Fill these in once
  1. Show the file's SHA-256
    Terminal
    shasum -a 256 download.zip
  2. Compare it with the expected one
    Terminal
    echo "paste-the-expected-hash  download.zip" | shasum -a 256 -c

    "OK" means it matches. "FAILED" means don't use the file.

  1. Show the file's SHA-256
    Terminal · Ubuntu / Debian
    sha256sum download.zip
  2. Compare it with the expected one
    Terminal · Ubuntu / Debian
    echo "paste-the-expected-hash  download.zip" | sha256sum -c

    "OK" means it matches. "FAILED" means don't use the file.

  1. Show the file's SHA-256
    PowerShell
    Get-FileHash download.zip -Algorithm SHA256
  2. Compare it with the expected one
    PowerShell
    (Get-FileHash download.zip -Algorithm SHA256).Hash -eq "paste-the-expected-hash"

    True means it matches. False means don't use the file.