Question regarding checksuming of a file

Andrew Robert andrew.arobert at
Sun May 14 03:28:28 CEST 2006

Good evening,

I need to generate checksums of a file, store the value in a variable,
and pass it along for later comparison.

The MD5 module would seem to do the trick but I'm sketchy on implementation.

The nearest I can see would be

import md5
contents = open(self.file_name,"rb").read()

However this does not appear to be actually returning the checksum.

Does anyone have insight into where I am going wrong?

Any help you can provide would be greatly appreciated.


More information about the Python-list mailing list