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.MD5CryptoR*0; der md5 = new System.Security.Cryptography.MD5CryptoSeR*0; 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).PadLefR*0;
}
return hashString.PadLeft(*2,'0');
}
_____________