m0bnd
Posts: 2
Joined: Sat Nov 24, 2012 5:34 pm

SHA-1

Sat Nov 24, 2012 5:45 pm

What is this 'SHA-1' for and how do I use it?

Thanks in advance.

Andy.

User avatar
stevepdp
Posts: 285
Joined: Fri Oct 28, 2011 7:41 am
Contact: Website Twitter

Re: SHA-1

Sat Nov 24, 2012 6:00 pm

Are you referring to the SHA-1 checksum numbers on the download page?

These are so that you can test whether your downloaded zip files are correct as the RPF intended. Sometimes downloads appear to be successful, but problems with the server or your own bandwidth can corrupt the contents.

To test your downloaded images, refer to the Verifying an Image tutorial here.

If your hash pattern (the long number) matches up with the one on the image download page, then you've downloaded the file successfully. If not, then it's best to try and download the image again, or if possible use the Bittorrent download which is more reliable.

cmatthews
Posts: 88
Joined: Fri May 11, 2012 9:05 pm
Location: Wirral, UK

Re: SHA-1

Sat Nov 24, 2012 6:04 pm

SHA-1 is used for cryptography and for checking data integrity.

http://en.wikipedia.org/wiki/SHA-1#Applications

You might, for example, use it to check that a downloaded RPi disk image is genuine or that it is not corrupted. It might also be used in negotiating a secure connection to a remote machine on a network.
www.mydominion.co.uk

User avatar
jojopi
Posts: 3271
Joined: Tue Oct 11, 2011 8:38 pm

Re: SHA-1

Sat Nov 24, 2012 6:14 pm

stevepdp wrote:Sometimes downloads appear to be successful, but problems with the server or your own bandwidth can corrupt the contents.
Your unzip program will detect this anyway.

The cryptographic checksum is necessary only to ensure that the image has not been deliberately tampered with, say on an insecure mirror site. If you use BitTorrent the download is already checked cryptographically.

m0bnd
Posts: 2
Joined: Sat Nov 24, 2012 5:34 pm

Re: SHA-1

Sat Nov 24, 2012 7:51 pm

Thanks for the info, I thought it was something to do with security and integrity.
I have just checked one of the distros that I have downloaded and all is good.

Great and quick help 8-)

Andy.

Return to “Beginners”