title: How to convert a String to a Hex Byte Array?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/311165/how-do-you-convert-byte-array-to-hexadecimal-string-and-vice-versa-in-c">How do you convert Byte Array to Hexadecimal String, and vice versa, in C#? </a>  </p>
  </blockquote>
  
  
  
  <p>For testing my encryption algorithm I have being provided keys, plain text and their resulting cipher text.</p>
  
  <p>The keys and plaintext are in strings</p>
  
  <p>How do i convert it to a hex byte array??</p>
  
  <p>Something like this : <code>E8E9EAEBEDEEEFF0F2F3F4F5F7F8F9FA</code></p>
  
  <p>To something like this : </p>
  
  <pre><code>byte[] key = new byte[16] { 0xE8, 0xE9, 0xEA, 0xEB, 0xED, 0xEE, 0xEF, 0xF0, 0xF2, 0xF3, 0xF4, 0xF5, 0xF7, 0xF8, 0xF9, 0xFA} ;
  </code></pre>
  
  <p>Thanx in advance :)</p>