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); }
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); }
private void Button_Click(object sender, RoutedEventArgs e) { ICryptService src = new Caesar(); crtext.Text = src.Crypt(text.Text, key.Text); }