title: C# Can't generate initialization vector IV
body: <p>I get the following error when I try to create a IV initialization vector for TripleDES encryptor.</p>
  
  <p>Please see the code example:</p>
  
  <pre><code>TripleDESCryptoServiceProvider tripDES = new TripleDESCryptoServiceProvider();
  
  byte[] key = Encoding.ASCII.GetBytes("SomeKey132123ABC");
  byte[] v4 = key;
  byte[] connectionString = Encoding.ASCII.GetBytes("SomeConnectionStringValue");
  byte[] encryptedConnectionString = Encoding.ASCII.GetBytes("");
  
  // Read the key and convert it to byte stream
  tripDES.Key = key; 
  tripDES.IV = v4;
  </code></pre>
  
  <p>This is the exception that I get from the VS.</p>
  
  <p><strong><em>Specified initialization vector (IV) does not match the block size for this algorithm.</em></strong></p>
  
  <p>Where am I going wrong?</p>
  
  <p>Thank you</p>