md5 differences

D'Arcy J.M. Cain darcy at druid.net
Wed Sep 10 18:40:06 CEST 2008


On Wed, 10 Sep 2008 18:25:19 +0200
Python <python at rgbaz.eu> wrote:
> Arno at Computer:~% echo "hello" | md5
> b1946ac92492d2347c6235b4d2611184
> [...]
>  >>> md5.new("hello").hexdigest()
> '5d41402abc4b2a76b9719d911017c592'
> 
> How do I get the same results?

Send the same thing.

>>> md5.new("hello\n").hexdigest()
'b1946ac92492d2347c6235b4d2611184'

-- 
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