Re: Calculating md5 checksums.

2006-03-05 Thread Laszlo Zsolt Nagy
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?

Re: Calculating md5 checksums.

2006-03-03 Thread Rajesh Sathyamoorthy
I tried the script and had to get a hexdigest to get the value providedMy test:SimplyMEPIS-3.3.1-1.iso checksum: 41a19060d3bb37bd596708ba77964491i got: 41a19060d3bb37bd596708ba77964491Do people normally provide md5 checksum in a hexadecimal string?Besides that, is the script reliable? Replies:Rajes

Re: Calculating md5 checksums.

2006-03-03 Thread Nainto
Take a look at: http://effbot.org/librarybook/md5.htm Fredrik Lundh wrote: > Rajesh Sathyamoorthy wrote: > > > 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.

Re: Calculating md5 checksums.

2006-03-03 Thread Fredrik Lundh
Rajesh Sathyamoorthy wrote: > 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 befo

Calculating md5 checksums.

2006-03-03 Thread Rajesh Sathyamoorthy
Hi,How do you calculate the md5 checksum of a file?so far  i got this,import md5obj = 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