Re: wired md5 hashing problem

2006-03-26 Thread Paul Rubin
Matthias Güntert <[EMAIL PROTECTED]> writes: > i am in the process of writing a python script to backup my data. Now I > would like to implement md5/sha1 hashes. Try editing as follows: change > f = open(fname, "rb") > while 1: > block = f.read(1024*1024) >

Re: wired md5 hashing problem

2006-03-26 Thread Matthias Güntert
On Sun, 2006-03-26 at 11:48 -0500, Adam DePrince wrote: > > What do you get when you type > > md5sum backup.tar.bz2? it is working. Don't know what went wrong. But now I have another question: How am I able to execute an external program, like mysqldump? I had a look into the mysql module it

Re: wired md5 hashing problem

2006-03-26 Thread Adam DePrince
On Sun, 2006-03-26 at 16:56 +0200, Matthias Güntert wrote: > Hello list-members > > i am in the process of writing a python script to backup my data. Now I > would like to implement md5/sha1 hashes. > > # do md5 fingerprinting > if config.get("global", "crc") == "md5": > m = md

Re: wired md5 hashing problem

2006-03-26 Thread Adam DePrince
What do you get when you type md5sum backup.tar.bz2? - Adam On Sun, 2006-03-26 at 16:56 +0200, Matthias Güntert wrote: > Hello list-members > > i am in the process of writing a python script to backup my data. Now I > would like to implement md5/sha1 hashes. > > # do md5 fingerprinting

Re: wired md5 hashing problem

2006-03-26 Thread Felipe Almeida Lessa
Em Dom, 2006-03-26 às 16:56 +0200, Matthias Güntert escreveu: > so the format should be okay, but whats wrong with my piece of code?! It looks ok for me. What does md5sum gives as the sum? -- Felipe. -- http://mail.python.org/mailman/listinfo/python-list

wired md5 hashing problem

2006-03-26 Thread Matthias Güntert
Hello list-members i am in the process of writing a python script to backup my data. Now I would like to implement md5/sha1 hashes. # do md5 fingerprinting if config.get("global", "crc") == "md5": m = md5.new() # open the file f = open(fname, "rb") whil