md5 differences
D'Arcy J.M. Cain
darcy at druid.net
Wed Sep 10 13:18:12 EDT 2008
On Wed, 10 Sep 2008 19:12:28 +0200
Python <python at rgbaz.eu> wrote:
> hmm and this then:
>
> Arno at Computer:~% echo "test" > test.txt
>
> Arno at Computer:~% md5 test.txt
> MD5 (test.txt) = d8e8fca2dc0f896fd7cb4cb0031ba249
>
> Arno at Computer:~% 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 <darcy at druid.net> | 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.
More information about the Python-list
mailing list