Exemple #1
0
        private void decrypt_button_Click(object sender, EventArgs e)
        {
            string text = ciphered_text.Text;

            for (int i = 0; i < text.Length; ++i)
            {
                if (not_allowed_symbol(text[i]))
                {
                    MessageBox.Show("Input only number, syms of specified aphabet or spaces!");
                    return;
                }
            }

            text = letter_cryptor.decrypt(text);
            unciphered_text_box.Text = numeric_cryptor.decrypt(text);

            binary_unciphered_text.Text = get_binary_string(unciphered_text_box.Text);
        }