📄 于密校http--www_aspsky_net.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0046)http://www.aspsky.net/article/list.asp?id=1988 -->
<HTML><HEAD><TITLE>关于密码校验|http://www.aspsky.net</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type><LINK
href="于密校http--www_aspsky_net.files/style.css" rel=stylesheet>
<META content="MSHTML 5.00.2919.6307" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff topMargin=2 marginheight="4">
<CENTER>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=755>
<TBODY>
<TR>
<TD class=p2 width=466><LINK
href="于密校http--www_aspsky_net.files/style.css" rel=stylesheet>
<META content="Microsoft FrontPage 4.0" name=GENERATOR>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=755>
<TBODY>
<TR>
<TD height=54 width=181><IMG border=0 height=60
src="于密校http--www_aspsky_net.files/LOGO.gif" width=181></TD>
<TD align=middle class=p2 height=70 width=492>
<DIV id=flash2 style="VISIBILITY: visible; Z-INDEX: -1"><A
href="http://www.ruixun.net/index.htm" target=_blank><IMG border=0
height=60 src="于密校http--www_aspsky_net.files/ad1.gif"
width=468></A></DIV></TD>
<TD align=middle class=p2 style="LINE-HEIGHT: 150%" width=82><BR><A
href="http://www.aspsky.net/tell.asp">联系方法</A></TD></TR>
<TR>
<TD height=8 width=181></TD>
<TD class=p2 width=492></TD>
<TD class=p2 width=82></TD></TR></TBODY></TABLE>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=755>
<TBODY>
<TR>
<TD colSpan=3 height=22>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=738>
<TBODY>
<TR>
<TD align=middle
background=于密校http--www_aspsky_net.files/top01.gif height=30
width=81><B><FONT color=#ffffff><IMG height=15
src="于密校http--www_aspsky_net.files/dstop.gif" width=1><A
class=lb href="http://www.aspsky.net/">动网首页</A></FONT></B></TD>
<TD align=middle
background=于密校http--www_aspsky_net.files/top02.gif
width=82><FONT color=#719bc1><B><FONT color=#ffffff><IMG
height=15 src="于密校http--www_aspsky_net.files/dstop.gif"
width=1></FONT><A class=lb
href="http://www.dvbbs.net/">动网论坛</A></B></FONT></TD>
<TD align=middle
background=于密校http--www_aspsky_net.files/top02.gif
width=82><FONT color=#719bc1><B><FONT color=#ffffff><IMG
height=15 src="" width=1></FONT><A class=lb
href="http://www.aspsky.net/article/index.asp?classid=2">ASP技术</A></B></FONT></TD>
<TD align=middle
background=于密校http--www_aspsky_net.files/top02.gif
width=82><FONT color=#719bc1><B><FONT color=#ffffff><IMG
height=15 src="于密校http--www_aspsky_net.files/dstop.gif"
width=1></FONT><A class=lb
href="http://www.aspsky.net/article/index.asp?classid=1">.NET专区</A></B></FONT></TD>
<TD align=middle
background=于密校http--www_aspsky_net.files/top02.gif
width=82><FONT color=#719bc1><B><FONT color=#ffffff><IMG
height=15 src="于密校http--www_aspsky_net.files/dstop.gif"
width=1></FONT><A class=lb
href="http://www.aspsky.net/article/index.asp?classid=5">数据库</A></B></FONT></TD>
<TD align=middle
background=于密校http--www_aspsky_net.files/top02.gif
width=82><FONT color=#719bc1><B><FONT color=#ffffff><IMG
height=15 src="于密校http--www_aspsky_net.files/dstop.gif"
width=1></FONT><A class=lb
href="http://www.aspsky.net/article/index.asp?classid=3">PHP技术</A></B></FONT></TD>
<TD align=middle
background=于密校http--www_aspsky_net.files/top02.gif
width=82><FONT color=#719bc1><B><FONT color=#ffffff><IMG
height=15 src="于密校http--www_aspsky_net.files/dstop.gif"
width=1></FONT><A class=lb
href="http://www.aspsky.net/article/index.asp?classid=4">JAVA技术</A></B></FONT></TD>
<TD align=middle
background=于密校http--www_aspsky_net.files/top02.gif
width=82><FONT color=#719bc1><B><FONT color=#ffffff><IMG
height=15 src="于密校http--www_aspsky_net.files/dstop.gif"
width=1></FONT><A class=lb
href="http://www.aspsky.net/download/index.asp">下载中心</A></B></FONT></TD>
<TD align=middle
background=于密校http--www_aspsky_net.files/top02.gif
width=82><FONT color=#719bc1><B><FONT color=#ffffff><IMG
height=15 src="于密校http--www_aspsky_net.files/dstop.gif"
width=1></FONT><A class=lb
href="http://www.aspsky.net/itrade/index.asp">项目交易</A></B></FONT></TD></TR></TBODY></TABLE></TD></TR>
<TR bgColor=#2b7eff>
<TD bgColor=#2b7eff width=64><IMG height=23 src="" width=5></TD>
<TD bgColor=#2b7eff width=343><FONT color=#0000ff><FONT
color=#3399ff><FONT color=#ccffff>
<SCRIPT language=JavaScript>
var today = new Date();
var strDate = (today.getFullYear() + "年" +
(today.getMonth() + 1) + "月" + today.getDate() + "日 ");
var n_day = today.getDay();
switch (n_day)
{
case 0:{
strDate = strDate + "星期日"
}break;
case 1:{
strDate = strDate + "星期一"
}break;
case 2:{
strDate = strDate + "星期二"
}break;
case 3:{
strDate = strDate + "星期三"
}break;
case 4:{
strDate = strDate + "星期四"
}break;
case 5:{
strDate = strDate + "星期五"
}break;
case 6:{
strDate = strDate + "星期六"
}break;
case 7:{
strDate = strDate + "星期日"
}break;
}
document.write(strDate);
</SCRIPT>
</FONT></FONT></FONT></TD>
<TD align=middle width=385><FONT color=#ccffff><IMG align=absMiddle
height=15 src="于密校http--www_aspsky_net.files/home.gif" width=15>
</FONT><A href="http://www.aspsky.net/#"
onclick='this.style.behavior="url(#default#homepage)";this.setHomePage("http://www.aspsky.net")'
target=_self><FONT color=#ccffff>设为首页</FONT></A><FONT color=#ccffff>
<IMG align=absMiddle height=15
src="于密校http--www_aspsky_net.files/favorite.gif" width=15> </FONT><A
href="javascript:window.external.AddFavorite('http://www.aspsky.net','动网先锋(www.aspsky.net)')"
target=_self><FONT color=#ccffff>加入收藏</FONT></A><FONT color=#ccffff>
<IMG align=absMiddle height=15
src="于密校http--www_aspsky_net.files/email.gif" width=15><A
href="http://www.dvbbs.net/" target=_top><FONT
color=#ccffff>会员中心</A></FONT></FONT></TD></TR></TBODY></TABLE>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=755>
<TBODY>
<TR bgColor=#3366ff>
<TD height=2></TD></TR></TBODY></TABLE>
<CENTER></CENTER></TD>
<TD class=p2 width=102></TD></TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=755>
<TBODY>
<TR>
<TD height=1></TD></TR>
<TR bgColor=#ffcc00>
<TD align=right height=23 width=355>
<CENTER></CENTER>
<P align=center>中国动感资源交流,网络动感资源荟萃</P></TD>
<TD align=middle>
<P align=center><A href="http://www.moonet.com/edu/">教育网</A>
英文版</P></TD></TR></TBODY></TABLE>
<CENTER>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=755>
<TBODY>
<TR vAlign=top>
<TD bgColor=#297dff width=1> </TD>
<TD width=753></TD>
<TD bgColor=#297dff width=1> </TD></TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=755>
<TBODY>
<TR vAlign=top>
<TD bgColor=#297dff width=1> </TD>
<TD width=753>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD bgColor=#297dff colSpan=2 height=20><FONT color=#ceffff> →
<A href="http://www.aspsky.net/article/index.asp?classid=2"><FONT
color=#ceffff>ASP技术</FONT></A> >> <A
href="http://www.aspsky.net/article/index.asp?classid=2&Nclassid=3"><FONT
color=#ceffff>ASP技巧</FONT></A> >> 《关于密码校验》</FONT></TD></TR>
<TR>
<TD bgColor=#586011 colSpan=2 height=1><SPACER type="block"
width="1"></TD></TR>
<TR>
<TD colSpan=2 height=7></TD></TR>
<TR>
<TD align=middle class=p4
colSpan=2><B>关于密码校验</B></FONT><BR>2001-5-23 动网先锋 </TD></TR>
<TR>
<TD class=p4 colSpan=2>
<BLOCKQUOTE><BR>在处理密码校验这种问题的时候我们一般需要检测用户输入的数据,以排除类似单引号、or等特殊字符和单词,这时使用正则表达式是一个非常有效的方法。不过今天在编制论坛的时候却忽然想到这样一种写法:<BR>IF
password<>repassword OR len(password)<>len(repassword)
Then<BR>这同样是一种简单而有效的校验方法,这样我们只需要在密码生成的时候调用正则来确保密码的有效性,在校验的时候可以用这种简单方法来进行比较。
<BR><BR><BR></BLOCKQUOTE></TD></TR>
<TR>
<TD class=p4 vAlign=top width="50%">
<BLOCKQUOTE>原作者:凤凰<BR>来 源:动网论坛<BR>共有2751位读者阅读过此文<BR>【<A
href="http://bbs.aspsky.net/list.asp?boardid=1">发表评论</A>】
</BLOCKQUOTE></TD>
<TD class=p4 vAlign=top width="50%">
<P>
<LI><FONT color=#0772b1>上篇文章</FONT>:<A
href="http://www.aspsky.net/article/list.asp?id=1987">创建移动Web应用程序(7)</A>
<BR>
<LI><FONT color=#0772b1>下篇文章</FONT>:<A
href="http://www.aspsky.net/article/list.asp?id=1989">#include file
和 #include virtual的区别(菜鸟篇)</A> </LI></TD></TR>
<TR>
<TD bgColor=#297dff class=p4 height=20 width="50%"><FONT
color=#ceffff> → 本周热门</FONT></TD>
<TD bgColor=#297dff class=p4 width="50%"><FONT color=#ceffff> →
相关文章</FONT></TD></TR>
<TR>
<TD bgColor=#586011 colSpan=2 height=1><SPACER type="block"
width="1"></TD></TR>
<TR>
<TD colSpan=2 height=7></TD></TR>
<TR>
<TD class=p4 vAlign=top width="50%">
<LI><A href="http://www.aspsky.net/article/list.asp?id=1510"
target=_top title="SQL Server 7.0 入门(一)">SQL Server 7.0
入门(...</A>[<FONT color=red>7239</FONT>]<BR>
<LI><A href="http://www.aspsky.net/article/list.asp?id=1540"
target=_top title=PHP4实际应用经验篇(1)>PHP4实际应用经验篇(1)</A>[<FONT
color=red>7135</FONT>]<BR>
<LI><A href="http://www.aspsky.net/article/list.asp?id=1536"
target=_top
title=无组件文件上传代码实例(支持多文件上传及文件和input域混合上传)>无组件文件上传代码实例(支持多文件上...</A>[<FONT
color=red>6029</FONT>]<BR>
<LI><A href="http://www.aspsky.net/article/list.asp?id=2557"
target=_top title=树型结构在ASP中的简单解决>树型结构在ASP中的简单解决</A>[<FONT
color=red>5757</FONT>]<BR>
<LI><A href="http://www.aspsky.net/article/list.asp?id=1545"
target=_top title=PHP4实际应用经验篇(6)>PHP4实际应用经验篇(6)</A>[<FONT
color=red>5599</FONT>]<BR>
<LI><A href="http://www.aspsky.net/article/list.asp?id=2563"
target=_top title=一个老个写的无组件上传>一个老个写的无组件上传</A>[<FONT
color=red>5014</FONT>]<BR>
<LI><A href="http://www.aspsky.net/article/list.asp?id=1542"
target=_top title=PHP4实际应用经验篇(3)>PHP4实际应用经验篇(3)</A>[<FONT
color=red>4731</FONT>]<BR></LI></TD>
<TD class=p4 vAlign=top width="50%">
<LI><A
href="http://www.aspsky.net/article/list.asp?id=1988">关于密码校验</A><BR>
<LI><A
href="http://www.aspsky.net/article/list.asp?id=1938">ASP.NET中密码保护,MD5和SHA1算法的使用</A><BR>
<LI><A
href="http://www.aspsky.net/article/list.asp?id=1291">修改MySQL中一个用户的密码</A><BR>
<LI><A
href="http://www.aspsky.net/article/list.asp?id=1017">如何为用户设置密码(MYSQL)</A><BR></LI></TD></TR>
<TR>
<TD colSpan=2 height=7></TD></TR></TBODY></TABLE>
<TD bgColor=#297dff width=1> </TD></TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=755>
<TBODY>
<TR>
<TD bgColor=#297dff height=1><SPACER type="block"
width="1"></TD></TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=755>
<TBODY>
<TR>
<TD align=middle height=30></TD></TR></TBODY></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=755>
<TBODY>
<TR>
<TD align=middle class=p2 width="100%">
<TABLE border=0 cellPadding=0 cellSpacing=0 width=755>
<TBODY>
<TR>
<TD align=middle class=p2 width="100%">
<P align=center><A
href="http://www.aspsky.net/produce/index.asp">客户服务</A> -- <A
href="http://www.aspsky.net/aspads.asp">广告合作</A> -- <A
href="http://www.aspsky.net/about.asp">关于本站</A> -- <A
href="http://www.aspsky.net/tell.asp">联系方法</A><BR><BR>动网先锋版权所有 <FONT
face=Verdana, size=1 Arial, Helvetica, sans-serif>Copyright ©
2000-2001 <B>AspSky<FONT color=#cc0000>.Net</FONT></B>, All Rights
Reserved .</FONT>
</P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></CENTER></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -