<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://effbot.org/librarybook/md5.htm" target="_blank"></a>I tried the script and had to get a hexdigest to get the value provided<br><br>My test:<br>SimplyMEPIS-3.3.1-1.iso
<br>checksum: 41a19060d3bb37bd596708ba77964491<br>i got: 41a19060d3bb37bd596708ba77964491<br><br>Do people normally provide md5 checksum in a <b style="">hexadecimal string?<br></b>Besides that, is the script reliable?<br>
<br><span style="text-decoration: underline;">Replies</span>:<br>Rajesh Sathyamoorthy wrote:<br>How do you calculate the md5 checksum of a file?<br>so far i got this,<br><br>import md5<br>obj = md5.new()<br>file = open( 'filename', 'rb')
<br>data = text.read()<br>obj.update(data)<br>checksum = md5.digest()<br><br>Is this correct? Is there anything else i should do before comparing the<br>checksum with the one provided for the file?<br><br>Fredrik Lundh wrote:
<br>the script has some obvious bugs, but nothing you won't discover simply<br>by running the program... (did you try that? what happened?)<br><br>Nainto wrote:<br>Take a look at: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://effbot.org/librarybook/md5.htm" target="_blank">
http://effbot.org/librarybook/md5.htm</a>