I am working on setting up GPG and have run into issues with the sha256sum.exe program not returning the same hash as certutil on Windows 10 x64 (certutil is included with Windows and has been my “go to” for many years after saying goodbye to md5summer program).
My file size in question is over 400GB and after much research I landed on using the Windows program fsutil to see if the size was the issue. (Initially I thought a transfer was defective so I had to obtain another storage device to eliminate that as the cause since I just didn’t have room to save everything.) I started with small sizes and worked my way up…here are the two last tests…the 202,400,000,000 bytes (188GB) test is successful (hashes match) but 302,400,000,000 bytes (281GB) was not successful (hashes do not match).
D:>fsutil file createnew test2 202400000000
File D:\test2 is created
D:>dir test2
Volume in drive D is Data
Directory of D:\
03/26/2025 10:26 AM 202,400,000,000 test2
D:>certutil -hashfile d:\test2 SHA256
SHA256 hash of d:\test2:
2141e811e916323a0d26e9c2303cbf9a789bb8ee771c8c3b27bb9355b11cae08
CertUtil: -hashfile command completed successfully.
D:>“c:\Program Files (x86)\Gpg4win”\bin\sha256sum.exe test2
2141e811e916323a0d26e9c2303cbf9a789bb8ee771c8c3b27bb9355b11cae08 test2
D:>fsutil file createnew test3 302400000000
File D:\test3 is created
D:>dir test3
Volume in drive D is Data
Directory of D:\
03/26/2025 10:29 AM 302,400,000,000 test3
D:>certutil -hashfile d:\test3 SHA256
SHA256 hash of d:\test3:
9a5fa3f85bdd4f7e7ce824cf9ed26e7778e95008d4e74f35114205e5a448a6a5
CertUtil: -hashfile command completed successfully.
D:>“c:\Program Files (x86)\Gpg4win”\bin\sha256sum.exe test3
5e030458bbb124d92eccc2c39ccf321e467f9c1cf1365848ff471e94ce904949 test3