Some parts of this article have been written with AI. Be aware that AI can make mistakes.

Verify Download Integrity (SHA-256)

When downloading installers, packages, or disk images from the Coho Download Center, it is a security best practice to verify the file's SHA-256 checksum against the value published on the download page.

Verifying the checksum confirms that:

  • The file was downloaded completely without data corruption.
  • The file is authentic and has not been tampered with or modified.

Step-by-Step Verification Guide

Select your operating system below to view the instructions:

Windows

Using Windows PowerShell

Windows includes built-in support for computing cryptographic hashes using the Get-FileHash cmdlet in PowerShell.

  1. Open Windows PowerShell or PowerShell 7 (press Win + X and select Terminal or Windows PowerShell).
  2. Calculate the SHA-256 hash by running the Get-FileHash cmdlet followed by the path to your downloaded file:
Get-FileHash "C:\Users\<username>\Downloads\<filename>"

Tip

The Get-FileHash cmdlet uses SHA256 by default. You can also explicitly specify it with -Algorithm SHA256:

Get-FileHash -Path "C:\Users\<username>\Downloads\<filename>" -Algorithm SHA256

Example output:

Algorithm       Hash                                                               Path
---------       ----                                                               ----
SHA256          A1B2C3D4E5F6...7890ABCDEF1234567890ABCDEF1234567890ABCDEF123456    C:\Users\username\Downloads\coho-setup.exe
  1. Compare the returned Hash value with the SHA-256 checksum listed on the Coho Download Center for the product you downloaded.

    You can also let PowerShell compare the values automatically:

(Get-FileHash "C:\Users\<username>\Downloads\<filename>").Hash -eq "<expected_sha256_hash>"

If the command returns True, the file is intact and authentic.

For more information, see the Microsoft documentation on Get-FileHash.

Linux

Using sha256sum

Most Linux distributions provide the standard sha256sum utility pre-installed as part of GNU Coreutils.

  1. Open a Terminal window.
  2. Run the sha256sum command followed by the path to the downloaded file:
sha256sum ~/Downloads/<filename>

Example output:

a1b2c3d4e5f6...7890abcdef1234567890abcdef1234567890abcdef123456  /home/user/Downloads/coho-package.tar.gz
  1. Compare the 64-character hash string with the SHA-256 checksum published on the Coho Download Center.

    [!NOTE] Linux command line utilities output hashes in lowercase characters, while Windows outputs uppercase. SHA-256 checksum comparisons are case-insensitive.

    To verify automatically in the terminal, run:

echo "<expected_sha256_hash>  /path/to/<filename>" | sha256sum --check

(Note: Ensure there are two spaces between the hash and the file path.)

If the verification succeeds, the command will output:

/path/to/<filename>: OK

What to do if the hash does not match

If the computed hash does not match the official SHA-256 value:

  • Do not execute or install the downloaded file.
  • Your download may have been interrupted or corrupted. Try downloading the file again using a stable network connection or another browser.
  • Ensure you are comparing against the hash matching the exact version and target architecture (e.g., x64 vs ARM64) of the file you downloaded.
  • If the mismatch persists, please report the issue to Coho Support.