Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Coder's Corner Lounge (http://www.programmingforums.org/forum11.html)
-   -   Download decryption? (http://www.programmingforums.org/showthread.php?t=12853)

titaniumdecoy Mar 20th, 2007 10:53 PM

Download decryption?
 
I've noticed that often when a file is made available for download on a popular website, the download links are occasionally accompanied by what I assume are decryption keys. For example, on the official Ruby website, each download link is followed by md5 and sha256 codes. What is the purpose of these codes? I can download any of the files without a problem and decompress them without entering any sort of code. :confused:

Wizard1988 Mar 20th, 2007 11:07 PM

They are for security reasons. A hash is computed for the file, and it is posted. When you receive the file on your side you compute the hash yourself and compare. This way you can check if the file was tampered with on the way to you.

titaniumdecoy Mar 20th, 2007 11:48 PM

Can you check the hash yourself, or is it done automatically by your decompression app?

Benoit Mar 20th, 2007 11:58 PM

You generally check the hash yourself. Check out a utility called "md5sum" for checking md5 keys.


All times are GMT -5. The time now is 3:10 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC