private void decryptBtn_Click(object sender, EventArgs e) { if (decryptBox.ForeColor == SystemColors.InactiveCaption) { MessageBox.Show("No input!"); } else { try { string message = Decryption.GetMessage(Decryption.Decrypt(Decryption.DisplayArrayFromString(decryptBox.Text))); if (message != string.Empty) { outputBox.Text = message; } else { outputBox.Text = "Invalid Data"; } } catch (Exception) { outputBox.Text = "Data appears to be malformed or tampered."; } } }