title: TypeError: argument must be string or read-only buffer, not bytearray
body: <p>I'm building a decryptor using DES ECB</p>
  <pre><code>from Crypto.Cipher import DES
  
  code = 'cb9108614c943d96bedd2bae934c5aa3d5c4318f81cc81f255127292f2935bbc0a8990f36c1ffa20a0639ed8a6989bacc36bd11f6b2ecdab'
  key = b'5199D19B'
  code= bytearray.fromhex(code)
  
  print(code)
  
  ciphert = DES.new(key, DES.MODE_ECB)
  code = ciphert.decrypt(code)
  code = code.decode('ISO-8859-1')
  
  print(code)
  </code></pre>
  <p>but I keep getting this error</p>
  <blockquote>
  <p>File &quot;test.py&quot;, line 17, in </p>
  <p>code = ciphert.decrypt(code)</p>
  <p>File &quot;build/bdist.macosx-10.14-intel/egg/Crypto/Cipher/blockalgo.py&quot;, line 295, in decrypt</p>
  <p>TypeError: argument must be string or read-only buffer, not bytearray</p>
  </blockquote>
  <p>Ive been working on this for hours now and can't figure out another way to store the variable.</p>
  <p>Any ideas?</p>