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()); } }
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); } }