Beispiel #1
0
 private void EncryptButton_Click(object sender, EventArgs e)
 {
     try
     {
         string encryptMessage = _vigController.Encrypt(sourceRichTextBox1.Text, _kEncrypt.ToString());
         encryptedRichTextBox.Text  = encryptMessage;
         encryptedRichTextBox2.Text = encryptMessage;
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message);
     }
 }
 private void EncryptButton_Click(object sender, EventArgs e)
 {
     try
     {
         string sourceMessage  = sourceRichTextBox.Text;
         string key            = keyTextBox.Text;
         string encryptMessage = _vigController.Encrypt(sourceMessage, key);
         encryptRichTextBox.Text = encryptMessage;
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message);
     }
 }