title: How can you print cipher text as a hex string?
body: <p>I use the PyCrypto module to generate a cipher text for a message.</p>
  
  <pre><code>&gt;&gt;&gt; a=AES.new("1234567890123456")
  &gt;&gt;&gt; m='aaaabbbbccccdddd'
  &gt;&gt;&gt; a.encrypt(m)
  'H\xe7\n@\xe0\x13\xe0M\xc32\xce\x16@\xb2B\xd0'
  </code></pre>
  
  <p>I would like to have this output like the one by <code>hashlib</code></p>
  
  <pre><code>&gt;&gt;&gt; from hashlib import sha1
  &gt;&gt;&gt; sha1(m).hexdigest()
  '68b69b51da162fcf8eee65641ee867f02cfc9c59'
  </code></pre>
  
  <p>That is, I would need a clean string instead of the string with the hex markers like <code>\x</code> and stuff.</p>
  
  <p>Is there any way in PyCrypto to achieve this?</p>
  
  <p>If yes,How can encryption and decryption be performed?</p>
  
  <p>If no, how can I convert the string to the string I need?</p>