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