title: Powershell byte array to hex
body: <p>I have the following byte array that I would like to obtain hex format in order to decrypt an encrypted string using aes-256-ecb. (PowerShell uses AES encryption if you specify key argument in <code>ConvertFrom-SecureString</code> function)</p>
  <p>In order to check this I verify by using openssl:</p>
  <pre><code>echo 'mysecretdata' | openssl enc -d -aes-256-ecb -K 303534303438303439303939303438303938303937303435303530303530303937303537303435303439303439303130310a
  </code></pre>
  <p><strong>hex string is too long
  invalid hex key value</strong></p>
  <p>What am I missing?</p>