Hi everyone. Well I thought people were kinda inactive atm so why not make a tutorial.
Ok so first we need a MD5CryptoServiceProvider .. To get this you need to "include" System.Security.Cryptography.
And then we can create it.
Ok so time to create our Byte Arrays.
MD5 md5Crypto = new MD5CryptoServiceProvider();
1 For our Normal Data (The string we wanna encrypt)
2 To store the hash
Byte NormalData, EncodedData;
Now lets set the Normal Data to the string we want, from bytes.
NormalData = ASCIIEncoding.Default.GetBytes("String");
Ok time to use our MD5CryptoServiceProvider..
Convert to MD5 Hash from our byte array (String):
EncodedData = md5Crypto.ComputeHash(NormalData);
Now u might think you can just outprint your Byte Array EncodedData to a string, You cant.
We need to use BitConverter
String Hash = BitConverter.ToString(EncodedData);
Thank you for watching my tutorial! Please reply