title: TripleDes class decryption issue
body: <p>I have created a TripleDes class like that :</p>
  
  <pre><code>class TripleDes_Crypto
  {
      // Key Lenght must be 24
      string Key = string.Empty;
      // IV Lenght must be 8
      string IV = string.Empty;
  
  public TripleDes_Crypto(string KEY, string IV)
  {
      this.Key = KEY;
      this.IV = IV;
  }
  
  public string Encrypt(string Data)
  {
      byte[] key = Encoding.ASCII.GetBytes(Key);
      byte[] iv = Encoding.ASCII.GetBytes(IV);
      byte[] data = Encoding.ASCII.GetBytes(Data);
      byte[] enc = new byte[0];
  
      TripleDES tdes = TripleDES.Create();
      tdes.IV = iv;
      tdes.Key = key;
      tdes.Mode = CipherMode.CBC;
      tdes.Padding = PaddingMode.Zeros;
  
      // encryption
      ICryptoTransform ict = tdes.CreateEncryptor();
      enc = ict.TransformFinalBlock(data, 0, data.Length);
  
      return ASCIIEncoding.ASCII.GetString(enc);
  }
  
  public string Decrypt(string Data)
  {
      byte[] key = Encoding.ASCII.GetBytes(Key);
      byte[] iv = Encoding.ASCII.GetBytes(IV);
      byte[] data = Encoding.ASCII.GetBytes(Data);
      byte[] dec = new byte[0];
  
      TripleDES tdes = TripleDES.Create();
      tdes.IV = iv;
      tdes.Key = key;
      tdes.Mode = CipherMode.CBC;
      tdes.Padding = PaddingMode.Zeros;
  
      // decryption
      ICryptoTransform ict = tdes.CreateDecryptor();
      dec = ict.TransformFinalBlock(data, 0, data.Length);
  
      return ASCIIEncoding.ASCII.GetString(dec);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>And i used :</p>
  
  <pre><code>    private void button1_Click(object sender, EventArgs e)
      {
          TripleDes_Crypto tdes = new TripleDes_Crypto("passwordDR0wSS@P6660juht", "password");
          File.WriteAllText(@"encrypted", tdes.Encrypt("Hey TEST DATA"));
          MessageBox.Show(tdes.Decrypt(File.ReadAllText(@"encrypted")));
      }
  </code></pre>
  
  <p>Well the encryption method works fine but the decryption method is the problem as when i use decrypt it generates some random data while it should output : Hey TEST DATA.</p>
  
  <p>Thanks for help in advance.</p>