code: def hexdigest(self):
          
  
          d = map(None, self.digest())
          d = map(ord, d)
          d = map(lambda x:"%02x" % x, d)
          d = string.join(d, '')
  
          return d
docs: Terminate and return digest in HEX form.
  
          Like digest() except the digest is returned as a string of
          length 32, containing only hexadecimal digits. This may be
          used to exchange the value safely in email or other non-
          binary environments.