Help getting the md5 module to work

Peter Hansen peter at engcorp.com
Sat Mar 20 17:36:55 EST 2004


Amy G wrote:
> "Erik Max Francis" <max at alcyone.com> wrote in message
> news:405BFC92.E1C8C186 at alcyone.com...
> 
>>Paul Rubin wrote:
>>
>>
>>>Try n.update("help\n").
>>
>>Right.  For Amy:  You can suppress the newline on echo with the -n
>>option, by the way:
>>
> 
> I discovered this last night.
> 
> But what is the true MD5 hash for help?  With or without the newline?

You already had the right hashes for both!  Your Python attempt did
not include a newline, while the shell approach with "echo" did, so you
were comparing apples and oranges.

Paul and Erik gave you the solutions to switch either approach to do 
what the other does...

-Peter



More information about the Python-list mailing list