static void Main(string[] args) { string res = MultipleGamma.Encrypt("Привет1 мир"); Console.WriteLine(res); Console.WriteLine(MultipleGamma.Decrypt(res, MultipleGamma.gammas)); Console.ReadKey(); }
private void GammaEncryptButton_Click(object sender, RoutedEventArgs e) { if (TextToEncodeBox.Text.Length > 0) { GammaEncryptedText.Content = ""; GammaDecryptedText.Content = ""; GammaEncryptedText.Content = MultipleGamma.Encrypt(TextToEncodeBox.Text); } else { MessageBox.Show("Введите тескт для шифрования"); } }