Skip to main content

Check integrity of a file using MD5 sum and verify authenticity via GPG

When you download a file from a website, sometime the website also provide some codes of MD5 sum result to check file integrity after downloading. MD5 sum result can be generated using this command.
$ md5sum download.file
Then you can compare your result with code provided by the website.

Next, to verify authenticity via GPG, use this following steps.
- download the public key
- download the authenticity key
- run: $ gpg --import publickey.asc
- run: $ gpg --verify authkey.asc downloaded.file

Comments