private void DecryptButton_Click(object sender, EventArgs e)
 {
     if (DecryptionHash.Text == "")
     {
         DialogResult dlgRes = MessageBox.Show("Please Insert a Valid Hash Key", "Error Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     if (SelectImagetoDecryptBox.Text == "")
     {
         DialogResult dlgRes = MessageBox.Show("Please Insert a Valid Image", "Error Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     string HashInput = DecryptionHash.Text;
     Decrypt newDecrypt = new Decrypt(HashInput, SelectImagetoDecryptBox.Text);
     string resultMessage = newDecrypt.getSecretMessage();
     OutputMessageBox.Text = resultMessage;
 }
Exemple #2
0
        private void DecryptButton_Click(object sender, EventArgs e)
        {
            if (DecryptionHash.Text == "")
            {
                DialogResult dlgRes = MessageBox.Show("Please Insert a Valid Hash Key", "Error Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            if (SelectImagetoDecryptBox.Text == "")
            {
                DialogResult dlgRes = MessageBox.Show("Please Insert a Valid Image", "Error Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            string  HashInput     = DecryptionHash.Text;
            Decrypt newDecrypt    = new Decrypt(HashInput, SelectImagetoDecryptBox.Text);
            string  resultMessage = newDecrypt.getSecretMessage();

            OutputMessageBox.Text = resultMessage;
        }