public static string getmd5(string sdatain)
{
md5cryptoserviceprovider md5 = new md5cryptoserviceprovider();
byte[] bytvalue, bythash;
bytvalue = system.text.encoding.utf8.getbytes(sdatain);
bythash = md5.computehash(bytvalue);
md5.clear();
string stemp = ;
for (int i = 0; i < bythash.length; i++)
{
stemp += bythash[i].tostring(x).padleft(2, '0');
}
return stemp.tolower();
}