D
Dan
I have a question regarding the md5 module. Is there a way in
"initialize" the md5 to a hex value, and continue processing with that
value.
For example:
In [13]:md5_h = md5.md5("Hello world")
In [14]:md5_h.hexdigest()
Out[14]:'3e25960a79dbc69b674cd4ec67a72c62'
In [15]:md5_w = md5.md5("Hello")
In [16]:md5_w.hexdigest()
Out[16]:'8b1a9953c4611296a827abf8c47804d7'
In [17]:md5_w.update(" world")
In [18]:md5_w.hexdigest()
Out[18]:'3e25960a79dbc69b674cd4ec67a72c62'
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.
-Dan
"initialize" the md5 to a hex value, and continue processing with that
value.
For example:
In [13]:md5_h = md5.md5("Hello world")
In [14]:md5_h.hexdigest()
Out[14]:'3e25960a79dbc69b674cd4ec67a72c62'
In [15]:md5_w = md5.md5("Hello")
In [16]:md5_w.hexdigest()
Out[16]:'8b1a9953c4611296a827abf8c47804d7'
In [17]:md5_w.update(" world")
In [18]:md5_w.hexdigest()
Out[18]:'3e25960a79dbc69b674cd4ec67a72c62'
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.
-Dan