using System.Text;
using System.Security.Cryptography;
public static string Encrypt(string password)
{
Byte[] clearBytes=new UnicodeEncoding().GetBytes(password);
Byte[] hashedBytes=((HashAlgorithm)CryptoConfig.CreateFromName("MD5")).ComputeHash(clearBytes);
return BitConverter.ToString(hashedBytes);
}