Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static string HashString(string Value)
- {
- MD5CryptoServiceProvider provider = new MD5CryptoServiceProvider();
- byte[] bytes = Encoding.ASCII.GetBytes(Value);
- bytes = provider.ComputeHash(bytes);
- string str = "";
- for (int i = 0; i < bytes.Length; i++)
- {
- str = str + bytes[i].ToString("x2").ToLower();
- }
- return str;
- }
Add Comment
Please, Sign In to add comment