Calculating md5 checksums.
Rajesh Sathyamoorthy
rajesh1986 at gmail.com
Fri Mar 3 14:57:41 EST 2006
Hi,
How do you calculate the md5 checksum of a file?
so far i got this,
import md5
obj = md5.new()
file = open( 'filename', 'rb')
data = text.read()
obj.update(data)
checksum = md5.digest()
Is this correct? Is there anything else i should do before comparing the
checksum with the one provided for the file?
Thank You.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060304/054c1b8c/attachment.html>
More information about the Python-list
mailing list