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