16

I'm interested in installing the Electron Cash application from electroncash.org (Electron-Cash-2.9.4.exe) and the website indicates that to be sure of the integrity of the download, I should verify the authenticity of the file.

The site points me to the developers github page to get the keys and hashes. I've deduced that of the 3 public keys at that link, the one to use is probably the one called jonaldkey.txt (though there is another one jonaldkey2.txt for some reason) and there is a .sig file that presumably contains the hash.

In Windows 10, how can I use the public key (jonaldkey.txt) and hash (Electron-Cash-2.9.4.exe.sig) to verify my downloaded file (Electron-Cash-2.9.4.exe) ?

1

1 Answer 1

13

There's a Gpg4win application, which deals with signing and verifying files. It has its Compendium, on whose 110th page we read:

Checking a signature

Now check the integrity of the file that has just been signed, i.e. check that it is correct! To check for integrity and authenticity, the signature file – hence the file with the ending .sig , .asc , .p7s or .pem – and the signed original file (original file) must be in the same file folder. Select the signature file and select the entry Decrypt and check from the Windows Explorer context menu:

Context menu

Obviously you need to install it with shell extension. Option to verify a .SIG file is under the More GpgEX Options. To verify your program, I used these steps:

  • downloaded jonaldkey.txt, not the other, and the Electron-Cash-2.9.4.exe.sig file
  • renamed jonaldkey.txt to jonaldkey.PEM
  • right-clicked the .SIG and choose Verify
  • program said it cannot verify because of an unknown key, so I clicked Import button,
  • I was asked to create my own key in order to verify other person's public key, so I did that, unfortunately I was asked to accept a fingerprint of that public key, which isn't available anywhere
  • after that I choose the newly imported key in the verification process and it passed.

Output of a verified file

Verify checksum (not the signature)

You can also download the SHA1.Electron-Cash-2.9.4.exe.txt file, which is a text file, rename it's extension to .sha1. I have two tools at my disposal, which verify checksums. These are: 7zip and Total Commander by Ghisler. The former adds a context menu allowing you to show various checksums of a clicked file, in this case we right-click an .exe file (not the .sig) and verify displayed sum with the downloaded SHA1 text file. The latter allows you to press Enter on the *.sha, *.md5, *.sfv etc. files and displays results as OK or FAIL.

Context menu of 7zip Total Commander has verified the file

3
  • 1
    Thanks very much for your help! When you say "unfortunately I was asked to accept a fingerprint of that public key, which isn't available anywhere", should the developer have published a fingerprint of their public key too? Nov 15, 2017 at 20:25
  • 1
    Yes, for example you can download qbittorrent, on whose page you see a fingerprint displayed: see here
    – Kitet
    Nov 15, 2017 at 20:53
  • There is also an short overview by GnuPG at Check integrity of Gpg4win packages. Jan 10, 2021 at 21:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .