@{ var input = "THIS IS A TEST."; var output = ""; //if (Request.HttpMethod == "POST") //{ MD5 md5 = System.Security.Cryptography.MD5.Create(); byte[] inputBytes = System.Text.Encoding.ASCII.GetBytes(input); byte[] hash = md5.ComputeHash(inputBytes); var sb = new StringBuilder(); for (int i = 0; i < hash.Length; i++) { sb.Append(hash[i].ToString("X2")); } output = sb.ToString(); //} } @output