Skip to content

Instantly share code, notes, and snippets.

@jaysonrowe
Created September 23, 2012 21:40
Show Gist options
  • Save jaysonrowe/3773136 to your computer and use it in GitHub Desktop.
Save jaysonrowe/3773136 to your computer and use it in GitHub Desktop.
Encryptor Main Window Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace MD5Util
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void Button_Click_1(object sender, RoutedEventArgs e)
{
string text = clearText.Text;
Encryptor e1 = new Encryptor();
encText.Text = e1.MD5Hash(text);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment