public static string Cryptograohy(string text, string mode)
{
char[] arrChar = text.ToCharArray();
byte[] arrByte = new byte[arrChar.Length];
for (var i = 0; i <= arrByte.Length - 1; i++)
arrByte[i] = Convert.ToByte(arrChar[i]);
var objMD5 = new MD5CryptoServiceProvider();
byte[] arrHashOutput = objMD5.ComputeHash(arrByte);
return BitConverter.ToString(arrHashOutput).Replace("-", String.Empty);
}