Re: md5 differences

2008-09-10 Thread Python
On 10 sep 2008, at 19:48, Grant Edwards wrote: On 2008-09-10, Wojtek Walczak <[EMAIL PROTECTED]> wrote: On Wed, 10 Sep 2008 12:39:24 -0500, Grant Edwards wrote: The strange thing is that md5.new("/Volumes/data/Arno/test.txt").hexdigest() returns '8dd66a1592e2a8c3ab160822fb237f4d' on my mac

Re: md5 differences

2008-09-10 Thread Python
On 10 sep 2008, at 19:39, Grant Edwards wrote: On 2008-09-10, Wojtek Walczak <[EMAIL PROTECTED]> wrote: On Wed, 10 Sep 2008 19:12:28 +0200, Python wrote: [EMAIL PROTECTED]:~% echo "test" > test.txt [EMAIL PROTECTED]:~% md5 test.txt MD5 (test.txt) = d8e8fca2dc0f896fd7cb4cb0031ba249 import

Re: md5 differences

2008-09-10 Thread Grant Edwards
On 2008-09-10, Wojtek Walczak <[EMAIL PROTECTED]> wrote: > On Wed, 10 Sep 2008 12:39:24 -0500, Grant Edwards wrote: > >>> The strange thing is that >> md5.new("/Volumes/data/Arno/test.txt").hexdigest() >>> returns '8dd66a1592e2a8c3ab160822fb237f4d' on my machine. >> >> Same here. > > I guess i

Re: md5 differences

2008-09-10 Thread Wojtek Walczak
On Wed, 10 Sep 2008 12:39:24 -0500, Grant Edwards wrote: >> The strange thing is that > md5.new("/Volumes/data/Arno/test.txt").hexdigest() >> returns '8dd66a1592e2a8c3ab160822fb237f4d' on my machine. > > Same here. I guess it will be the same for vast majority of us ;-) The question is why i

Re: md5 differences

2008-09-10 Thread Grant Edwards
On 2008-09-10, Wojtek Walczak <[EMAIL PROTECTED]> wrote: > On Wed, 10 Sep 2008 19:12:28 +0200, Python wrote: >> [EMAIL PROTECTED]:~% echo "test" > test.txt >> >> [EMAIL PROTECTED]:~% md5 test.txt >> MD5 (test.txt) = d8e8fca2dc0f896fd7cb4cb0031ba249 > >> >>> import md5 >> >>> md5.new("/Volumes/data/

Re: md5 differences

2008-09-10 Thread Grant Edwards
On 2008-09-10, Python <[EMAIL PROTECTED]> wrote: > > On 10 sep 2008, at 18:30, Richard Brodie wrote: > >> >> "Python" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> >>> here's an example: >>> [EMAIL PROTECTED]:~% echo "hello" | md5 >>> b1946ac92492d2347c6235b4d2611184 >>> How do

Re: md5 differences

2008-09-10 Thread Wojtek Walczak
On Wed, 10 Sep 2008 19:12:28 +0200, Python wrote: > [EMAIL PROTECTED]:~% echo "test" > test.txt > > [EMAIL PROTECTED]:~% md5 test.txt > MD5 (test.txt) = d8e8fca2dc0f896fd7cb4cb0031ba249 > >>> import md5 > >>> md5.new("/Volumes/data/Arno/test.txt").hexdigest() > '90364ed45b452d43378629c20543a81d'

Re: md5 differences

2008-09-10 Thread D'Arcy J.M. Cain
On Wed, 10 Sep 2008 19:12:28 +0200 Python <[EMAIL PROTECTED]> wrote: > hmm and this then: > > [EMAIL PROTECTED]:~% echo "test" > test.txt > > [EMAIL PROTECTED]:~% md5 test.txt > MD5 (test.txt) = d8e8fca2dc0f896fd7cb4cb0031ba249 > > [EMAIL PROTECTED]:~% python > Python 2.5.1 (r251:54863, Jan 17 2

Re: md5 differences

2008-09-10 Thread Python
On 10 sep 2008, at 18:30, Richard Brodie wrote: "Python" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] here's an example: [EMAIL PROTECTED]:~% echo "hello" | md5 b1946ac92492d2347c6235b4d2611184 How do I get the same results? Checksum the same string. md5.new("hello\n").hex

Re: md5 differences

2008-09-10 Thread Python
On 10 sep 2008, at 18:34, Fredrik Lundh wrote: Python wrote: I'm trying to match the results of an md5 checksum done in a tcsh shell. I keep getting different results and can't find anything on google... here's an example: [EMAIL PROTECTED]:~% echo "hello" | md5 b1946ac92492d2347c6235b4d2611

Re: md5 differences

2008-09-10 Thread D'Arcy J.M. Cain
On Wed, 10 Sep 2008 18:25:19 +0200 Python <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED]:~% echo "hello" | md5 > b1946ac92492d2347c6235b4d2611184 > [...] > >>> md5.new("hello").hexdigest() > '5d41402abc4b2a76b9719d911017c592' > > How do I get the same results? Send the same thing. >>> md5.new("

Re: md5 differences

2008-09-10 Thread Richard Brodie
"Python" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > here's an example: > [EMAIL PROTECTED]:~% echo "hello" | md5 > b1946ac92492d2347c6235b4d2611184 > How do I get the same results? Checksum the same string. >>> md5.new("hello\n").hexdigest() 'b1946ac92492d2347c6235b4d2611184

Re: md5 differences

2008-09-10 Thread Fredrik Lundh
Python wrote: I'm trying to match the results of an md5 checksum done in a tcsh shell. I keep getting different results and can't find anything on google... here's an example: [EMAIL PROTECTED]:~% echo "hello" | md5 b1946ac92492d2347c6235b4d2611184 [EMAIL PROTECTED]:~% python Python 2.5.1 (r2