private void bntInitVector_Click(object sender, EventArgs e)
 {
     if (this.radRC2.Checked)
     {
         symmAthm = new RC2();
         iv       = symmAthm.getIV();
         this.txtinitVector.Text = BitConverter.ToString(iv);
     }
     else if (this.radRijndael.Checked)
     {
         symmAthm = new Rijndael();
         iv       = symmAthm.getIV();
         this.txtinitVector.Text = BitConverter.ToString(iv);
     }
     else if (this.radDES.Checked)
     {
         symmAthm = new DES();
         iv       = symmAthm.getIV();
         this.txtinitVector.Text = BitConverter.ToString(iv);
     }
     else if (this.radTripleDES.Checked)
     {
         symmAthm = new TripleDES();
         iv       = symmAthm.getIV();
         this.txtinitVector.Text = BitConverter.ToString(iv);
     }
 }
 private void bntKey_Click(object sender, EventArgs e)
 {
     if (this.radRC2.Checked)
     {
         symmAthm         = new RC2();
         key              = symmAthm.getKey();
         this.txtKey.Text = BitConverter.ToString(key);
     }
     else if (this.radRijndael.Checked)
     {
         symmAthm         = new Rijndael();
         key              = symmAthm.getKey();
         this.txtKey.Text = BitConverter.ToString(key);
     }
     else if (this.radDES.Checked)
     {
         symmAthm         = new DES();
         key              = symmAthm.getKey();
         this.txtKey.Text = BitConverter.ToString(key);
     }
     else if (this.radTripleDES.Checked)
     {
         symmAthm         = new TripleDES();
         key              = symmAthm.getKey();
         this.txtKey.Text = BitConverter.ToString(key);
     }
 }
        private void radTripleDES_CheckedChanged(object sender, EventArgs e)
        {
            if (this.radTripleDES.Checked)
            {
                symmAthm = new TripleDES();

                iv = symmAthm.getIV();
                this.txtinitVector.Text = BitConverter.ToString(symmAthm.getIV());
                key = symmAthm.getKey();
                this.txtKey.Text = BitConverter.ToString(symmAthm.getKey());
            }
        }