110,536
社区成员
发帖
与我相关
我的任务
分享
String id="1";
String type="2";
String macKey = "jlwetrj";
String mac = Security.Encrypt(id+type+macKey);
String url = String.Format("aa.aspx?id={0}&type={1}&mac={3}",id,type,macKey);
然后在aa.aspx中再验证下
------------------------aa.aspx中
String macKey = "jlwetrj";
String mac = Security.Encrypt(Request.QueryString["id"]+Request.QueryString["type"]+macKey);
if(mac != Requeset.QueryString["mac"])
{
Response.Write("参数非法");
Response.End();
}