Inside this guide
To verify a software download before installing it, compare the file's SHA-256 checksum with the value the vendor publishes for that exact release. If the vendor supplies a digital signature, check that it is valid and comes from the expected signer.
Start with the official download
Prefer the vendor's official download page, your operating system's app store or your distribution's package manager. Check the domain and choose the file for the correct version, operating system and processor architecture.
Get the expected checksum or signing-key fingerprint from a trusted vendor source. A mirror that hosts both the file and the checksum could substitute both. Where available, use a separately verified release announcement or a signed checksum file.
What SHA-256 and signatures tell you
SHA-256 produces a 64-character hexadecimal checksum. A mismatch can indicate that you picked the wrong file or that the download was incomplete, corrupted or altered. Compare all 64 characters. Uppercase and lowercase hex digits are equivalent.
A checksum match checks file integrity. A verified signature also identifies the signing key.
A signature is useful only when you can establish that the signing key belongs to the expected publisher. A matching checksum or valid signature cannot guarantee that the software is safe to run. Prefer SHA-256 over MD5 or SHA-1 for security-sensitive checks.
Verify a download on Windows
Open PowerShell. Replace the example path with the path to your download. You only need read access to calculate the checksum.
Get-FileHash -LiteralPath 'C:\Users\YourName\Downloads\installer.exe' -Algorithm SHA256Compare the full Hash value with the vendor's published SHA-256 checksum.
For an installer that supports Windows Authenticode, inspect its signature in PowerShell.
Get-AuthenticodeSignature -LiteralPath 'C:\Users\YourName\Downloads\installer.exe' | Format-ListCheck that Status is Valid and that SignerCertificate identifies the publisher you expected. An unsigned file lacks this identity check. If the vendor says the file should be signed, treat a missing signature as a failed check.
Verify a download on macOS
Open Terminal and substitute the path to your download. You can drag the file from Finder into Terminal after typing the command name, algorithm and a space to insert its path.
shasum -a 256 ~/Downloads/installer.dmgCompare the complete checksum with the vendor's value for that file.
Use the lock or certificate icon in the Installer window. Follow the Apple Support instructions linked below to verify the certificate authority, validity and SHA-256 certificate fingerprint. If a check fails, close Installer. The certificate fingerprint and the downloaded file's checksum are different values. For another publisher's package, follow that publisher's verification instructions.
Verify a download on Linux
Use sha256sum from GNU Coreutils and compare the result with the vendor's checksum.
sha256sum ~/Downloads/package.tar.xzIf the vendor supplies a compatible checksum file such as SHA256SUMS, put it alongside the download. In that directory, run the check and confirm that the intended file is reported as OK.
sha256sum --check SHA256SUMSCheck the source of the checksum file before relying on its contents. If the software is available in your distribution's signed repository, the package manager can handle integrity checks for you.
Verify a detached GPG signature
Use an existing, trusted GnuPG installation. Obtain the publisher's public signing key and follow its instructions for loading the key. From the directory with both downloads, replace the example names with the detached signature and the release file.
gpg --verify release.tar.xz.sig release.tar.xzA good signature confirms that the signature matches the file and the key used to verify it. Compare the full signing-key fingerprint with the one the publisher provides through a trusted channel. When updating GnuPG itself, verify the download with an already trusted copy.
If the checksum or signature fails
Keep your operating system's security protections enabled. If a mismatch persists, wait for the vendor to clarify before installing.
Prepared with AI-assisted research and writing using the sources below.
Sources
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-filehash
https://www.gnu.org/software/coreutils/manual/coreutils.html
https://gnupg.org/download/integrity_check.html
https://gnupg.org/documentation/manuals/gnupg/Operational-GPG-Commands.html



