In two recent blog articles (here and here) I have called out the USPTO for programming Patentcenter so that its Acknowledgment Receipts list false information about what a filer uploaded in Patentcenter. The practitioner wishing to independently check such things will thus be interested to know how to calculate a SHA-512 hash (Wikipedia article, what the USPTO calls a “message digest”) of a PDF or DOCX file on the practitioner’s hard drive. One way to do this is with a command-line utility within Microsoft Windows.
Here is how to do it.
Suppose you have a file called “x-410.pdf” on your hard drive and it is in your folder called “C:\temp”. Suppose you wish to calculate the SHA-512 hash of this file (what the USPTO calls its “message digest”).
You can open a command line window and navigate to that folder. Having reached that folder, type a command line using the “certutil” (Microsoft documentation) command like this:
C:\temp>certutil -hashfile x-410.pdf sha512
SHA512 hash of x-410.pdf:
CertUtil: -hashfile command completed successfully.
Now you have the hash. If you were to upload this PDF file to EFS-Web or to Patentcenter, you could compare this hash with the hash appearing in the Ack Receipt.
Given that EFS-Web or Patentcenter are likely to fail to actually preserve the uploaded file intact within IFW, you will probably want to make a special point of preserving the uploaded file locally in some very safe place. The preserved file, along with the ack receipt, probably should be preserved for the life of any issued patent, that is for the term of the patent plus the statute of limitations (six years).
Update: See in the comments below that alert readers have provided links to a variety of handy tools for calculating or displaying the SHA-512 hashes (message digests) of files on your Mac, Linux, or Windows computer.
5 Replies to “How to calculate SHA-512 hashes in Microsoft Windows”
Great post Carl. For mac users like me, I found instructions on how to calculate SHA-512 hash of any file on your computer, such as a Microsoft Word file, here: https://medium.com/@EvgeniIvanov/how-to-verify-checksum-on-mac-988f166b0c4f.
For those lacking familiarity with a command-line utility, a similar option with detailed instructions for calculating a SHA-512 hash may be found here https://community.spiceworks.com/how_to/127204-how-to-find-the-sha-hash-of-a-given-file
I use the desktop app HashTab where you right click on a file and it displays hashes. In settings in the right slick tab setup the SHA-512 hash. It works on Windows v 188.8.131.52 and I think there are various Mac and Linux open source versions https://m.majorgeeks.com/files/details/hashtab.html https://github.com/namazso/OpenHashTab https://github.com/tristanheaven/gtkhash https://github.com/idrassi/HashCheck
On most Unix-derived systems, including GNU/Linux and BSD, any of the following may be available:
shasum -a 512 filename
openssl dgst -sha512 filename
openssl sha512 filename
Several hash options, including SHA-512, can be conveniently calculated by right-clicking on any file using a tiny utility by Nirsoft:
In the Options, enable context menu and select SHA-512 in the Hash Types, and you are all set.