·您的位置: 首页 » 资源教程 » 编程开发 » ASP » 密码登录生成器

密码登录生成器

类别: ASP教程  评论数:0 总得分:0
<HTML>
<!-- #BeginTemplate "/Templates/Js.dwt" -->
<HEAD>
<!-- #BeginEditable "doctitle" -->
<TITLE>密码登录生成器</TITLE>
<!-- #EndEditable -->
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK
href="/*.ico" rel="shortcut icon">
<STYLE type=text/css>BODY {
MARGIN: 25px 25px 25px
}
#all TD {
FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"
}
INPUT {
FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"
}
SELECT {
FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"
}
P {
FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"
}
TEXTAREA {
FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"
}

#all A:active {
COLOR: #7d070c
}
#all A:visited {
COLOR: #7d070c
}

#all A:hover {
COLOR: #336699
}
#all A:link {
COLOR: #7d070c
}
</STYLE>
<SCRIPT language=JavaScript>
<!--

function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location=\'"+args[i+1]+"\'");
}
function JM_cc(ob){
var obj=MM_findObj(ob); if (obj) {
obj.select();js=obj.createTextRange();js.execCommand("Copy");}
}

function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
//-->
</SCRIPT>
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
</HEAD>
<BODY id=all text=#000000 bgColor=#336699>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TR bgColor=#ffffff>
<TD><IMG src="/images/*.gif" width=11 height="14"></TD>
<TD width="100%"></TD>
<TD><IMG src="/images/*.gif"
width=11 height="14"></TD>
</TR>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TR bgColor=#ffffff>
<TD><IMG src="/images/*.gif" width=11 height="1"></TD>
<TD width="100%">
<table width="100%" border="0" cellpadding="8">
<tr>
<td align="center">
<script language="JavaScript">
document.write("<font color=#7d070c style=/"font-size: 14px/">"+document.title+"</font>");
</script>
</td>
</tr>
<tr>
<td bgcolor="#f7f7f7"><!-- #BeginEditable "example" -->1.在下面的输入框内输入你的密码(这就是你要求浏览者要输入密码后才能访问的密码)密码的长度必须是少于十位,只允许字母与数目字.<small><font
face="Verdana">
<script>
var lengthe=\'\'
var length2=\'\'
var numletter="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
var key=0
var temp,temp2,t3=\'\'
var userinput


function generate(input){
temp=numletter.indexOf(input)
var temp2=temp^key
temp2=numletter.substring(temp2,temp2+1)
return (temp2)
}

function generateit(inputs){
lengthe=\'\'
length2=\'\'
key=0
temp=temp2=t3=\'\'
userinput=inputs
key=Math.round(Math.random()*63)
if (key<11)
key=key+11+Math.round(Math.random()*40)
length2=inputs.length
for (i=0;i<length2;i++)
t3+=generate(userinput.charAt(i))
lengthe=t3.length
}

</script>
<script language="JavaScript">
function JM_setPageName(){
var ob=MM_findObj(\'password2\');obt=MM_findObj(\'pagename\'); if (ob&&obt&&ob.value.length>0){
obt.innerText=ob.value
}
}
</script>
</font></small>
<form method="POST" name="password1">
<p>
<input type="text" name="password2" size="20" onBlur=JM_setPageName()>
</p>
</form>
<p>2.请把输入正确密码后进入的页面的文件名改为<font color="#990000">[<span id=pagename>密码</span>.html]</font><font face="Verdana">
<script>
function proceed(){
if (document.password1.password2.value.length<10&&document.password1.password2.value.length>0){
generateit(document.password1.password2.value)
jp();
JM_cc(\'S1\');
}
else
alert("密码不能长度不符合或者为空!")
}
</script>
</font></p>
<form method="POST">
<p>
<input type="button"
value="生成我的密码页面保护程序" onClick="proceed()" name="B1">
</p>
</form>
<form name=g method=post>
<p>
<textarea name=S1 rows=15 cols=55>//你可以设置后缀为其它文件格式,默认为.html
var extension=".html"
var enablelocking=0
var numletter="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
var temp3=\'\'
var cur=0


function max(which){
return (pass[Math.ceil(which)+(3&amp;15)].substring(0,1))
}

function testit(input){
temp=numletter.indexOf(input)
var temp2=temp^parseInt(pass[phase1-1+(1|3)].substring(0,2))
temp2=numletter.substring(temp2,temp2+1)
return (temp2)
}


function submitentry(){
t3=\'\'
verification=document.password1.password2.value
phase1=Math.ceil(Math.random())-6+(2&lt;&lt;2)
var indicate=true
for (i=(1&amp;2);i&lt;window.max(Math.LOG10E);i++)
t3+=testit(verification.charAt(i))
for (i=(1&amp;2);i&lt;lim;i++){
if (t3.charAt(i)!=pass[phase1+Math.round(Math.sin(Math.PI/2)-1)].charAt(i))
indicate=false
}
if (verification.length!=window.max(Math.LOG10E))
indicate=false
if (indicate)
window.location=verification+extension
else
alert("密码错误,请再输入!")
}
<script>



<table border="1" cellspacing="0" cellpadding="0" bgcolor="#FFFFBD>
<tr>
<td width="100%"><form name="password1"><div align="center"><center><p><strong>Enter password: </strong><input
type="text" name="password2" size="15"><br>
<input type="button" value="Submit" onClick="submitentry()"></p>
</center></div>
</form>
</td> </tr> </table><textarea>
</p>
</form>
<p>
<!--webbot bot="HTMLMarkup" startspan -->
<script>
function jp(){
var cutcontent=document.g.S1.value
document.g.S1.value=\'\'
var p4=lengthe
var thepassword="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
var tempvar=new Array("","","","","","")
var cur=0
var ep=\'<script>/n/nvar pass=new Array()/n\'
ep+=\'var t3=""/nvar lim=\'+p4+\'/npass[0]="\'
var keypiece=thepassword.charAt(Math.round(Math.random()*62))
var p1=t3
var p2=length2
var p3=key


function createpass(){
return (thepassword.charAt(Math.round(Math.random()*62)))
}

for (i=0;i<3;i++){
for (i2=0;i2<15;i2++)
tempvar[cur]+=createpass()
cur++
}
for (i2=0;i2<15-p2;i2++)
tempvar[cur]+=createpass()
cur++
for (i2=0;i2<14;i2++)
tempvar[cur]+=createpass()
cur++

ep+=tempvar[0]+\'"/npass[1]="\'+tempvar[1]+\'"/npass[2]="\'+tempvar[2]+\'"/npass[3]="\'+p1+tempvar[3]+\'"/npass[4]="\'+p2+tempvar[4]+keypiece+\'"/npass[5]="\'+p3+tempvar[4]+\'"/n/n\'

document.g.S1.value=ep+cutcontent
}
</script>
3.按下生成按钮后同,内容已经复制到你的剪贴板了,你只需要把内容粘贴到你的html文件内就可以了.
<!-- #EndEditable --></td>
</tr>
<tr>
<td><!-- #BeginEditable "code" --><br>
<!-- #EndEditable --></td>
</tr>
</table>
</TD>
<TD><IMG src="/images/space.gif"
width=11 height="1"></TD>
</TR>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TR bgColor=#ffffff>
<TD><IMG src="/images/sq_3.gif" width=11 height="14"></TD>
<TD width="100%"></TD>
<TD><IMG src="/images/sq_4.gif"
width=11 height="14"></TD>
</TR>
</TABLE>
</BODY>
<!-- #EndTemplate -->
</HTML>



-= 资 源 教 程 =-
文 章 搜 索
关键词:
类型:
范围:
纯粹空间 softpure.com
Copyright © 2006-2008 暖阳制作 版权所有
QQ: 15242663 (拒绝闲聊)  Email: faisun@sina.com
 纯粹空间 - 韩国酷站|酷站欣赏|教程大全|资源下载|免费博客|美女壁纸|设计素材|技术论坛   Valid XHTML 1.0 Transitional
百度搜索 谷歌搜索 Alexa搜索 | 粤ICP备19116064号-1