using System;
using System.Security.Cryptography;
using System.Text;
public class EncryptionUtilities
{
///
/// Makes a MD5 hash from a string
///
/// String to make a MD5 hash from
/// MD5 hash in the form of a Guid
public Guid GetMd5Hash(string inString)
{
var unicodeEncoding = new UnicodeEncoding();
var message = unicodeEncoding.GetBytes(inString);
MD5 hashString = new MD5CryptoServiceProvider();
return new Guid(hashString.ComputeHash(message));
}
}