private void EncryptText(object sender, RoutedEventArgs e) { Dictionary <string, byte[]> encryptResult = TripleDESHelper.Encrypt(InputTextBox.Text); string encryptedText = UTF8Encoding.UTF8.GetString(encryptResult["text"]); string key = String.Join(".", encryptResult["key"]); EncryptTextBox.Text = encryptedText; KeyTextBox.Text = key; EncryptedBytesTextBox.Text = String.Join(".", encryptResult["text"]); }
private void DEcryptText(object sender, RoutedEventArgs e) { string decryptedText = TripleDESHelper.Decrypt(EncryptToDecryptTextBox.Text, KeyToDecryptTextBox.Text); OutputTextBox.Text = decryptedText; }