Calculating md5 checksums.

Laszlo Zsolt Nagy gandalf at
Mon Mar 6 08:59:46 CET 2006

Rajesh Sathyamoorthy wrote:

> I tried the script and had to get a hexdigest to get the value provided
> My test:
> SimplyMEPIS-3.3.1-1.iso
> checksum: 41a19060d3bb37bd596708ba77964491
> i got: 41a19060d3bb37bd596708ba77964491
> Do people normally provide md5 checksum in a *hexadecimal string?
> *Besides that, is the script reliable?

I think the biggest problem is that you read the whole file as one 
string into memory. This won't work for large files, or at least it is 
very inefficient. Try to read chunks from the file until EOF and update 
the hash object with each chunk.



More information about the Python-list mailing list