コード例 #1
0
ファイル: Program.cs プロジェクト: Kir2255/BIS
        static void Main(string[] args)
        {
            string res = MultipleGamma.Encrypt("Привет1 мир");

            Console.WriteLine(res);
            Console.WriteLine(MultipleGamma.Decrypt(res, MultipleGamma.gammas));
            Console.ReadKey();
        }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: Kir2255/BIS
 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("Введите тескт для шифрования");
     }
 }