Example #1
0
        private void Button_Clicked(object sender, EventArgs e)
        {
            CryptLibrary.ICryptService ser = new Caesar();
            OutputPage p = new OutputPage();

            InputText.Text = ser.Crypt(InputText.Text, KeyInput.Text);
        }
Example #2
0
        static void Main(string[] args)
        {
            ICryptService service = new Caesar();
            string        cr      = service.Crypt("Hello world", "1");

            Console.WriteLine(cr);
            string dcr = service.Decrypt(cr, "2");

            Console.WriteLine(dcr);
        }
Example #3
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            ICryptService src = new Caesar();

            crtext.Text = src.Crypt(text.Text, key.Text);
        }