You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
112 lines
4.3 KiB
Plaintext
112 lines
4.3 KiB
Plaintext
11 months ago
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||
|
<link href="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
|
||
|
<link href="../../Scripts/bootstrap/css/bootstrap.css" rel="stylesheet" />
|
||
|
<link href="../../Scripts/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
||
|
<link href="../../Scripts/bootstrap/css/style.min.css" rel="stylesheet" />
|
||
|
<script src="../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
|
||
|
<script src="../../Scripts/QueryString.js" type="text/javascript"></script>
|
||
|
<script src="../../Scripts/config.js" type="text/javascript"></script>
|
||
|
<script src="../Gener.js" type="text/javascript"></script>
|
||
|
<script src="../../Scripts/layui/layui/lay/modules/layer.js" type="text/javascript"></script>
|
||
|
<script src="../../Scripts/bootstrap/bootstrap-table/src/bootstrap-table.js"></script>
|
||
|
<title>加密工具</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<table>
|
||
|
<caption>加密字符串</caption>
|
||
|
<tr>
|
||
|
<th>要加密的字符串 </th>
|
||
|
<td width="700"> <input width="80" type="text" name="mstr" id="mstr" placeholder="请输入要加密的字符串" lay-verify="required" class="form-control" /></tdlength="80">
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>生成的加密字符串 </th>
|
||
|
<td width="700">
|
||
|
<input width="80" type="text" name="sstr" id="sstr" class="form-control" />
|
||
|
<!-- <div id="sstr" style=" float:right;margin-right:14px">
|
||
|
</div>-->
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<input type="button" class="btn btn-primary btn-block" size="20" value="执行加密" id="Btn_Encrypto" onclick="encrypto();" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>解密后字符串 </th>
|
||
|
<td width="700">
|
||
|
<input length="80" type="text" name="jmstr" id="jmstr" class="form-control" />
|
||
|
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<input type="button" class="btn btn-primary btn-block" size="20" value="解密" id="Btn_Encrypto" onclick="decode_exe();" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
</table>
|
||
|
<div id="Msg" style=" float:right;margin-right:14px">
|
||
|
</div>
|
||
|
<script type="text/javascript">
|
||
|
//执行后台.
|
||
|
function encrypto() {
|
||
|
|
||
|
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin");
|
||
|
|
||
|
var mstr = $("#mstr").val();
|
||
|
//var pass = $("#TB_PW").val();
|
||
|
|
||
|
if (mstr == "" || mstr == "") {
|
||
|
$("#Msg").html("<font>请输入要加密的字符串.</font>");
|
||
|
return;
|
||
|
}
|
||
|
handler.AddPara("mstr", mstr);
|
||
|
var data = handler.DoMethodReturnString("Encrypto_Exe");
|
||
|
|
||
|
if (data.indexOf('err@') == 0) {
|
||
|
$("#Msg").html("<font color=red>" + data + "</font>");
|
||
|
|
||
|
return;
|
||
|
} else {
|
||
|
document.getElementById("sstr").value = data;
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
//执行后台.
|
||
|
function decode_exe() {
|
||
|
|
||
|
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin");
|
||
|
|
||
|
var sstr = $("#sstr").val();
|
||
|
//var pass = $("#TB_PW").val();
|
||
|
|
||
|
if (sstr == "" || sstr == "") {
|
||
|
$("#Msg").html("<font>要解密的字符串为空.</font>");
|
||
|
return;
|
||
|
}
|
||
|
handler.AddPara("sstr", sstr);
|
||
|
var data = handler.DoMethodReturnString("Decode_Exe");
|
||
|
|
||
|
if (data.indexOf('err@') == 0) {
|
||
|
$("#Msg").html("<font color=red>" + data + "</font>");
|
||
|
|
||
|
return;
|
||
|
} else {
|
||
|
document.getElementById("jmstr").value = data;
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
</tr>
|
||
|
|
||
|
</table></body>
|
||
|
</html>
|