Three files, two different contents
We created three original text files for a controlled example. Each file is 29 bytes long. The first two, original.txt and renamed.txt, contain exactly the same bytes. The third, changed.txt, differs by one byte: the final lowercase e in the word fixture becomes an uppercase E. The line ending remains the same.
Python hashlib and Windows PowerShell Get-FileHash produced matching SHA-256 values for each of the three files. The first two files shared the same full hash despite their different filenames. The changed file produced a different hash despite having the same byte length. This checks the example directly; it is not an actual Pexure Link transfer test.
| File | Bytes | SHA-256 |
|---|---|---|
| original.txt | 29 | 99f0865a2e85feb3b42977c5c5cdb7fd7733e23833f7da57b0fcac15f6fd5eab |
| renamed.txt | 29 | 99f0865a2e85feb3b42977c5c5cdb7fd7733e23833f7da57b0fcac15f6fd5eab |
| changed.txt | 29 | 360746450a9804a1d1f9ceffc9c8f9e859276f9474169835a4955992831e1dea |
Compare the complete value from the exact files
- Choose the original file whose contents you intend to send, and retain it unchanged during the comparison.
- Calculate its SHA-256 value and record which file and version it represents. If a publisher supplies a checksum, obtain it from a source you already trust.
- Calculate SHA-256 for the received file. Check that both calculations used SHA-256 rather than different algorithms.
- Compare all 64 hexadecimal characters. A matching short prefix, thumbnail, filename or file size is not the same check.
- If the values differ, keep both files and investigate before using the received copy. Confirm that you selected the correct source version and that neither file was edited after the handoff.
Keep the filename separate from the file contents
Microsoft documents that Get-FileHash operates on file contents rather than a filename or extension. Renaming the same bytes does not change that content hash. Conversely, keeping a name unchanged does not prevent the contents from changing. In a folder with several similarly named versions, identify the exact source and destination rather than relying on the visible label alone.
The PowerShell command also has a LiteralPath parameter. That distinction matters when a filename contains characters that a path pattern could interpret specially, such as brackets. Follow the documentation for your installed PowerShell version and use the exact intended path. Our example used LiteralPath and an explicit SHA256 algorithm.
A matching hash does not identify the publisher
A hash comparison is only as useful as the expected value you compare against. If an untrusted source replaces both a file and its advertised checksum, comparing those two items does not establish the publisher’s identity. A matching checksum also does not establish that the file is malware-free. Publisher identity, digital-signature checks and decisions about running software are separate questions.
The result is a check of file contents at the times they were hashed. It does not by itself establish folder completeness, permission preservation, encryption during transport, successful pause/resume, or the behavior of a particular transfer app. Record those separately when a handoff needs them.
What this example establishes
The independent tools agreed on all three original fixtures. We verified that the renamed copy matched the original and that a same-length, one-byte change differed. No user documents were used, no security settings were changed and no installer was executed.
This example does not verify a Pexure Link release, a real transfer between two computers or a downloaded installer’s authenticity. For product-specific instructions, check the exact release and retain the original and received test files. Keep the editable source or other backup until the receiving workflow has been checked.