So we are going to be making this (ignore the theme. it is a windows theme)
1. Make 2 textboxes, 2 buttons, and 2 labels, and align them as shown above.
2. Double click on one button and input this code:
3. Now make the string like this:
4. The second button is optional, but it copies the hashed text. The code for it is:
100% written by me
IDK why, but the code tag is doesn't keep the text aligned :/
sorry for the sloppy code.
Next tut: MD5 from file?
1. Make 2 textboxes, 2 buttons, and 2 labels, and align them as shown above.
2. Double click on one button and input this code:
Code:
textBox2.Text = StringToMD5(textBox1.Text);
3. Now make the string like this:
Code:
private string StringToMD5(string tits) { System.Security.Cryptography.MD5CryptoServiceProvider M5 = new System.Security.Cryptography.MD5CryptoServiceProvider();
byte[] ByteString = System.Text.Encoding.ASCII.GetBytes(tits); ByteString = M5.ComputeHash(ByteString);
string FinalString = null; foreach (byte bt in ByteString) { FinalString += bt.ToString("x2"); } return FinalString; }
4. The second button is optional, but it copies the hashed text. The code for it is:
PHP:
textBox2.SelectAll(); textBox2.Copy();
100% written by me
IDK why, but the code tag is doesn't keep the text aligned :/
sorry for the sloppy code.
Next tut: MD5 from file?