md5 question

Dan Sommers me at privacy.net
Thu Aug 3 22:32:26 EDT 2006


On 3 Aug 2006 18:36:14 -0700,
"Dan" <thermostat at gmail.com> wrote:

> now pretend I wanted to save the string
> '8b1a9953c4611296a827abf8c47804d7', and later create a new md5 object
> such that when I did md5_w.update(" world") it would then have the hex
> value '3e25960a79dbc69b674cd4ec67a72c62'. Is that possible? I've looked
> for initialization options in the documentation and searched c.l.p.,
> but no luck. 

According to http://docs.python.org/lib/module-md5.html, you want the
copy method of your existing md5 object.

Regards,
[Another] Dan

-- 
Dan Sommers
<http://www.tombstonezero.net/dan/>
"I wish people would die in alphabetical order." -- My wife, the genealogist



More information about the Python-list mailing list