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