You can use following code for encryption

private string encryptString(string strToEncrypt)
{
System.Text.UTF8Encoding ue = new System.Text.UTF8Encoding();
byte[] bytes = ue.GetBytes(strToEncrypt);

// encrypt bytes
System.Security.Cryptography.MD5Crypto... der md5 = new System.Security.Cryptography.MD5CryptoSe... der();
byte[] hashBytes = md5.ComputeHash(bytes);

// Convert the encrypted bytes back to a string (base *6)
string hashString = "";

for(int i=0;i
{
hashString += Convert.ToString(hashBytes[i],*6).PadLef...
}

return hashString.PadLeft(*2,'0');
}