MD5 Help Page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Daniel 'Dang' Griffith

    #1

    MD5 Help Page

    I'm referring to the text in
    http://www.python.org/doc/2.4.2/lib/module-md5.html, which shows the
    same thing I see in the Windows version of the help.

    The two examples show:

    '\xbbd\x9c\x83\ xdd\x1e\xa5\xc9 \xd9\xde\xc9\xa 1\x8d\xf0\xff\x e9'

    as the output, and that is indeed what I see when I run the examples.

    But if I use hexdigest() instead of digest(), I get this result:

    'bb649c83dd1ea5 c9d9dec9a18df0f fe9'

    I don't understand the difference. Specifically, in the output of
    digest, it shows a 'd' where I expect to see \x64. What causes this
    difference?

    Thanks,
    --dang

  • Daniel 'Dang' Griffith

    #2
    Re: MD5 Help Page

    Nevermind--chr(0x64) is 'd', as in duh.
    --dang

    Comment

    Working...