Hi,<br><br>How do you calculate the md5 checksum of a file?<br><br>so far  i got this,<br><br>import md5<br><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 checksum with the one provided for the file?<br><br>Thank You.<br>