title: MySQL des_decrypt cannot decrypt the string encripted by Python
body: <p>I use <code>des</code> to encrypt string, but I want to decrypt it using MySQL.</p>
  
  <p>The Python package is pycrypto: <a href="https://github.com/dlitz/pycrypto" rel="nofollow noreferrer">https://github.com/dlitz/pycrypto</a></p>
  
  <pre><code>from Crypto.Cipher import DES
  import binascii
  des_cipher = DES.new(u'password')
  print(binascii.hexlify(des_cipher.encrypt(u'11111111')))
  print(des_cipher.decrypt(binascii.unhexlify(u'dd3573a56ba157f8')))
  &gt;&gt;&gt; dd3573a56ba157f8
  &gt;&gt;&gt; 11111111
  </code></pre>
  
  <p>I tried the following queries. But neither worked.</p>
  
  <pre><code>SELECT des_decrypt(unhex('dd3573a56ba157f8'), 'password');
  SELECT cast(des_decrypt(unhex('dd3573a56ba157f8'), 'password') AS VARCHAR(1000));
  </code></pre>
  
  <p>The output is <code>�5s�k�W�</code>,not <code>11111111</code> which I desire.</p>