Encrypt me in the Chinese Material Network forum to see netizens ask how simple encryption, concrete implementation can write:
Forget with Asp,perl.
Write a landing form first. Suppose reg.asp
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<title> West Road Landing Page </title>
<body>
<form action= "pass.asp" method= "POST" >
<table cellpadding=2 cellspacing=0 border=0>
<tr>
<td><font face= "Arial,helvetica" size= "2" ><b>Username</b></font></td>
<td><input type= "text" name= "username" size= "></td>"
</tr>
<tr>
<td><font face= "Arial,helvetica" size= "2" ><b>Password</b></font></td>
<td><input type= "password" name= "password" size= "></td>"
</tr>
<tr>
<TD colspan= "2" ><input type= "Submit" value= "Log in" ></td>
</tr>
</table>
</FORM>
<p><a href= "1.asp" > enter </a></p>
<p><span lang= "en-US" ><a href= "signout.asp" >loginout</a></span></p>
</body>
One more login verification pass.asp
<%
Option Explicit
Dim username, password
Username = Request.Form ("username")
Password = request.form ("password")
' Change the username and password values below change the login
if (username = "admin") and (password = "admin") then
Response.Cookies ("loginadmin") = "True"
Response.Redirect ("Landing successful. asp")
End If
Response.Redirect ("Login.asp")
%>
Success enters the landing success. asp page
Returns Login.asp if failed
Following logout page: loginout.asp
<%
Response.Cookies ("loginadmin") = ""
Response.Redirect ("Login.asp")
%>
You can also use the database to store, of course, multi-user time. Simple words like this will do.