title: Serialize MD5 computation-state and resume later?
body: <p>I want to serialize/deserialize md5 context. But I don't know how to do it in Python.
  Pseudocode of what I want to do.</p>
  
  <pre><code>import md5
  # Start hash generation
  m = md5.new()
  m.update("Content")
  
  # Serialize m
  serialized_m = serialize(m)
  
  # In another function/machine, deserialize m
  # and continue hash generation
  m2 = deserialize(serialized_m)
  m2.update("More content")
  m2.digest()    
  </code></pre>
  
  <p>There are C++ libraries for this. Is there one for Python? Why doesn't the md5 library support it? Are there security concerns? Thanks.</p>
  
  <p>Edited:
  I want to do this because for example, an HTTP server wants to accept streaming data in different HTTP requests. It would be convenient to serialize md5 context somehow between requests.</p>