ASP网页加密 MD5
发布网友
发布时间:2022-05-24 12:27
我来回答
共1个回答
热心网友
时间:2023-10-13 05:13
default.asp(已测试可用!我给你发了消息,留了QQ,加我聊吧)
<!--#include file="md5.asp"-->
<html>
<head>
<title>加密首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<%
password=replace(trim(Request("password")),"'","")
if password="" then
%>
<form name="Login" action="default.asp" method="post" target="_parent" onSubmit="return CheckForm();">
<table width="500" height="80" border="0" align="center" cellpadding="0" cellspacing="2" >
<tr>
<td align="right"><b>密 码:</b></td>
<td><input name="Password" type="password" maxlength="20" ></td>
</tr>
<tr>
<td>
<div align="center">
<input type="submit" name="Submit" value=" 确认">
</div></td>
</tr>
</table>
</form>
<%
else
password=md5(password)
if password="965eb72c92a549dd" then '默认正确密码为111111
%>
<table width="500" height="80" border="0" align="center" cellpadding="0">
<tr>
<td align="center">页面内容显示正确</td>
</table>
<%else%>
<table width="500" height="80" border="0" align="center" cellpadding="0">
<tr>
<td align="center">页面内容显示错误,请输入正确的密码</td>
</table>
<%end if
end if%>
</body>
</html>