title: How to decrypt a hex stream using aes algorithm in tcl
body: <p>I have decrypted a sample text using an <a href="http://aes.online-domain-tools.com/" rel="nofollow">online tool</a> with a key.</p>
  
  <p>Now I am trying to decrypt the obtained hex data using aes package in tcl.</p>
  
  <p>Example :</p>
  
  <hr>
  
  <p>Decrypted <code>hello world</code> using the above mentioned tool.</p>
  
  <p>Key Used: <code>121301080D010518130E082007136412</code></p>
  
  <p>Obtained hex data : <code>edb191802afcec0deca6c9d725063cbc</code></p>
  
  <pre><code>set hexData "edb191802afcec0deca6c9d725063cbc"
  set key 121301080D010518130E082007136412
  aes::aes -hex -mode ecb -dir decrypt -key $key $hexData 5bc428095e1cacdcef56f11c2bcdee58fe3d93098f641849831db0bce1e655fd &lt;&lt;&lt;&lt;
  </code></pre>
  
  <p>When I convert this hex to string, I am seeing the following output</p>
  
  <pre><code>[Ä( ^¬ÜïVñ+ÍîXþ=“   dIƒ°¼áæUý
  </code></pre>
  
  <p>Can anybody help me do it?</p>