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 = "">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.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to