function strEncrypt(strEncryptString, SessionKey)
{
var pws = "";
var EncryptAppSecret = "";//安全验证密文
var EncryptUrl = '/Action/Encrypt.ashx';
//var AppSecret = document.getElementById("TxtAppSecret").value; //明文
$.ajax({
type: "POST",
url: EncryptUrl, //保存XML
dataType: 'text',
data: { EncryptString: strEncryptString, EncryptPath: SessionKey },
async: false,//同步
success: function Encrypt(result) {
pws = result;
}
});
//endregion 重新计算加安全密字符串
return pws;
}
//end 对参数加密
{
var pws = "";
var EncryptAppSecret = "";//安全验证密文
var EncryptUrl = '/Action/Encrypt.ashx';
//var AppSecret = document.getElementById("TxtAppSecret").value; //明文
$.ajax({
type: "POST",
url: EncryptUrl, //保存XML
dataType: 'text',
data: { EncryptString: strEncryptString, EncryptPath: SessionKey },
async: false,//同步
success: function Encrypt(result) {
pws = result;
}
});
//endregion 重新计算加安全密字符串
return pws;
}
//end 对参数加密