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 2008, 19:35:17) > [GCC 4.0.1 (Apple Inc. build 5465)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import md5 > >>> md5.new("/Volumes/data/Arno/test.txt").hexdigest() > '90364ed45b452d43378629c20543a81d'
You're going to smack yourself on the head over this one. :-) >>> md5.new(open("/Volumes/data/Arno/test.txt").read()).hexdigest() -- D'Arcy J.M. Cain <[EMAIL PROTECTED]> | Democracy is three wolves http://www.druid.net/darcy/ | and a sheep voting on +1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner. -- http://mail.python.org/mailman/listinfo/python-list