Example #1
0
        private void Button_Click_6(object sender, RoutedEventArgs e)
        {
            if ((RSAD.Text.Length > 0) && (RSAN.Text.Length > 0))
            {
                long d = Convert.ToInt64(RSAD.Text);
                long n = Convert.ToInt64(RSAN.Text);

                List <string> input = new List <string>();

                var input2 = RSAInput2.Text.Split();

                foreach (var Item in input2)
                {
                    if (Item != "")
                    {
                        input.Add(Item);
                    }
                }

                string result = RSAChiper.RSA_Dedoce(input, d, n);
                RSAOutput2.Text = result;
            }
            else
            {
                MessageBox.Show("Введите секретный ключ!");
            }
        }