On this page
Before you start
Keep the downloaded file closed. You need its exact path and the expected SHA-256 value published for that exact file on a trusted official page. PowerShell and Command Prompt are built into Windows, and this check normally does not require administrator access.
Follow these steps
Find the published value
Open the official download page and copy the SHA-256 for the exact file and version. Store, standalone and portable packages can have different values.
Find the downloaded file
Open its folder in File Explorer. Check the full filename, including an added (1) if present. Keep the file closed.
Find the exact installer you downloaded. Your filename may differ from this example. Enlarge image. - Open Downloads in the File Explorer sidebar.
- Use the Date modified column to find recent files.
Open PowerShell here
Type powershell in File Explorer’s address bar and press Enter. The prompt should show the same folder.
Calculate SHA-256
Replace the sample filename with your download and run:
Get-FileHash -LiteralPath '.\Osenpa-App-Setup.exe' -Algorithm SHA256Keep quotation marks around the path. This reads the file; it does not install or run it.
Compare the complete Hash value with the published value for that exact installer version. Enlarge image. - Compare the complete SHA256 hash with the value published for this exact download.
Compare the entire value
Check all 64 characters against the published value. Uppercase and lowercase letters are equivalent. Do not compare only the beginning and end.
Stop if it differs
Keep the file closed. Confirm that the published value belongs to this exact download, then download a fresh copy from the official source and compare again. Do not run it while the values differ.
Check your result
- The value belongs to the exact file and every character matches.
- You still need to trust the source. A checksum is not a malware verdict, digital signature or safety guarantee.
If you need more help
What SHA-256 means
SHA-256 turns a file's bytes into a 256-bit summary called a hash or checksum. It is normally shown as 64 hexadecimal characters using the numbers 0 through 9 and the letters A through F. The same bytes produce the same value. SHA-256 is designed to make a change to the bytes produce a different value.
A matching checksum shows that your copy has the same bytes as the copy used to publish that checksum. This is useful for spotting a damaged, incomplete or changed download. It does not prove that the original file is safe, signed or trustworthy.
Let PowerShell compare the values
Manual comparison works, but PowerShell can check the full string for you. Paste the published value between the quotation marks:
$expected = 'PASTE_THE_64_CHARACTER_VALUE_HERE'
First confirm that the pasted value is a complete SHA-256 string:
if ($expected -notmatch '^[0-9A-Fa-f]{64}$') { throw 'Paste exactly 64 hexadecimal characters.' }
$actual = $null
$actual = (Get-FileHash -LiteralPath '.\FileName.exe' -Algorithm SHA256 -ErrorAction Stop).Hash
$actual -eq $expected
True means the two complete values match. False means stop. If a command prints an error, stop and fix the path or expected value before comparing; do not reuse an earlier result. This comparison is useful only when the expected value came from the correct official page.
Troubleshooting
PowerShell says the path was not found: copy the exact file name from File Explorer, keep quotation marks around names with spaces, and check that the prompt shows the same folder.
The browser is still downloading the file: wait until the temporary download name disappears and the final file size stops changing, then calculate the hash again.
The path contains an apostrophe: inside a single-quoted path, write the apostrophe twice, for example '.\O''Brien.exe'. This also keeps dollar signs and backticks in a filename literal.
The automatic comparison returns False: confirm the expected value belongs to the exact file and channel, download a fresh copy from the official page, and stop if the new copy still differs.
What a match does not prove
- It does not prove who published the file if the expected value came from an untrusted page.
- It does not create a digital signature or identify a Windows publisher.
- It does not remove a Microsoft Defender SmartScreen warning.
- It does not show whether the publisher's original file is safe to run.
Command Prompt alternative
If PowerShell is unavailable, open Command Prompt in the file's folder and run certutil -hashfile "FileName.exe" SHA256. Compare the checksum in the output with the same official value.