private void button2_Click(object sender, EventArgs e) { textBox4.Text = AsymmetricEncryption.EncryptText(textBox3.Text, keySize, publicKey); }
private void button3_Click(object sender, EventArgs e) { textBox5.Text = AsymmetricEncryption.DecryptText(textBox4.Text, keySize, publicAndPrivateKey); }
private void button1_Click(object sender, EventArgs e) { AsymmetricEncryption.GenerateKeys(keySize, out publicKey, out publicAndPrivateKey); textBox1.Text = publicKey; textBox2.Text = publicAndPrivateKey; }