LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs > PalmerStudios
User Name
Password

Notices


PalmerStudios contains info on Linux, Arch and Kali specifically. In addition to thos two, GIMP and C programming will also be covered.
Rate this Entry

Verify a Downloaded File

Posted 02-10-2016 at 04:29 PM by tpalmerstudios

Whenever I download something, I like to be very sure on the authenticity of the file. The only way to do this easily is by using a cryptographic hash. There are two main types. First is MD5, and the second is SHA1.
Requirements:
1. A computer.
2. 10 minutes to learn (the actual process is only 1 minute long.)
3. Internet connection
How to do it: (On Windows)
1. Download the file needing to be verified. (I am using a Linux ISO. This file can be anything, but you must be able to find a MD5 or SHA1 checksum on the page.)
http://mirrors.kernel.org/archlinux/...02.01-dual.iso
2. Download the MD5 or SHA1 checksum. (If it is next to the file, just keep the tab open.)
Code:
MD5: b2a7ffedf177326366e0ad8bc688bb40
SHA1: 37427c722ffc57c15fb984287c34d5d48cc84247
3. Open the command prompt
Press the Windows key and the “r” key at the same time. Type in “cmd” followed by enter. (This should work on all versions of Windows.)
4. Find the file you downloaded.
If you downloaded it in your Downloads folder, type in
Code:
“cd c:\users\PalmerStudios\Downloads”
If you downloaded it to your Desktop, replace “Downloads” with “Desktop”
If you did anything else, I assume you know where you downloaded it to.
5. Find the checksum of the file you downloaded.
If you used the MD5, then type this into the command prompt
Code:
“FCIV -md5 file.ext”
For example I would type
Code:
“FCIV -md5 archlinux-2016.02.01-dual.iso”
If you used SHA1 replace the “-md5” with “-sha1”
6. Compare the output to the Checksum file or the website.
These two should be exactly the same. (Upper case and Lower case dOeSn'T matter.)

Simply put, just type in
Code:
FCIV -md5 filename
or
Code:
FCIV -sha1 filename
then compare.

How to do it: (On Linux)
1. Download the file needing to be verified. I am using a Linux ISO. This file can be anything, but you must be able to find a MD5 or SHA1 checksum on the page.)
http://mirrors.kernel.org/archlinux/...02.01-dual.iso
2. Download the MD5 or SHA1 checksum. (If it is next to the file, just keep the tab open.)
Code:
MD5: b2a7ffedf177326366e0ad8bc688bb40
SHA1: 37427c722ffc57c15fb984287c34d5d48cc84247
3. Open a terminal
Type Ctrl+Alt+F1 and then login. Or use your favorite terminal in X.
4. Find the file you downloaded
Type in “cd ~/Downloads” or the location of the file you just downloaded.
5. Find the checksum of the file you downloaded.
Type in
Code:
“md5sum file.ext”
For example I would type
Code:
“md5sum archlinux-2016.02.01-dual.iso”
If you use SHA1 rather than MD5, replace md5sum with sha1sum.
Code:
sha1sum archlinux-2016-02-01-dual.iso
6. Compare the output to the Checksum file or the website.
These two should be exactly the same. (Upper case and Lower case dOeSn'T matter.)

Simply put, ust type in
Code:
sha1sum filename
or
Code:
md5sum filename
then compare.

If you have any trouble, email me at tpalmerstudios@gmail.com.
Sorry for the minimal amount of code. (There's not very much to it.)
PalmerStudios
Basic info from
http://askubuntu.com/questions/61826...hash-of-a-file
http://www.techradar.com/us/news/com...ith-md5-641436
https://support.microsoft.com/en-us/kb/889768
and other sites.
Posted in Uncategorized
Views 3920 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 04:31 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration