title: Crypto.js decrypt with key and iv (vector) in byte arrays
body: <p>I have to decrypt some strings which are AES encrypted.</p>
  <blockquote>
  <p>Example encrypted string: 129212143036071008133136215105140171136216244116</p>
  </blockquote>
  <p>I have a key, and a vector (iv) supplied to me in a byte-array format:</p>
  <blockquote>
  <p>Key: [ 123, 217, 20, 11, 24, 26, 85, 45, 114, 184, 27, 162, 37, 115, 222, 209, 241, 24, 175, 144, 175, 53, 196, 29, 24, 23, 17, 218, 131, 226, 53, 209 ]</p>
  <p>Vector (iv): [ 146, 66, 191, 151, 23, 3, 113, 119, 231, 131, 133, 112, 79, 32, 114, 136 ]</p>
  </blockquote>
  <p>I should be able to decrypt the string and get:</p>
  <blockquote>
  <p>Correct output: testtest</p>
  </blockquote>
  <p>I'm trying to use Crypto.js but I can't find a way to use the supplied key and vector. I can't find a way to convert the byte-arrays to hex.</p>
  <pre><code>var encrypted = '129212143036071008133136215105140171136216244116';
  var key = CryptoJS.enc.Hex.parse([ 123, 217, 20, 11, 24, 26, 85, 45, 114, 184, 27, 162, 37, 115, 222, 209, 241, 24, 175, 144, 175, 53, 196, 29, 24, 23, 17, 218, 131, 226, 53, 209 ]);
  var iv  = CryptoJS.enc.Hex.parse([ 146, 66, 191, 151, 23, 3, 113, 119, 231, 131, 133, 112, 79, 32, 114, 136 ]);
  
  var decrypted = CryptoJS.AES.decrypt(encrypted, key, { iv: iv });
  
  console.log('Output: '+decrypted.toString(CryptoJS.enc.Utf8)); //Should be &quot;testtest&quot;
  </code></pre>
  <p>I would be so grateful if anyone could show me how to decrypt the example string using the key and vector with Crypto.js OR any other js method.</p>
  <p>Thanks so much for any help,
  Kind regards</p>