private void Decrypt_Click(object sender, RoutedEventArgs e) { string textToDecrypt = UserTextToDecrypt.Text; string DecryptedString = StringCrypter.Decrypt(textToDecrypt, UserPassWord.Text); DecryptedText.Text = DecryptedString; }
private void Encrypt_Click(object sender, RoutedEventArgs e) { string textToEncrypt = UserTextToEncrypt.Text; string encryptedString = StringCrypter.Encrypt(textToEncrypt, UserPassWord.Text); EncryptedText.Text = encryptedString; }