|
![]() |
名片设计 CorelDRAW Illustrator AuotoCAD Painter 其他软件 Photoshop Fireworks Flash |
|
我们利用Serv-U的obdc功能,可以把FTP用户信息存在数据库中,这样对Web操作方便了很多。ServU密码加密算法为随机码与MD5 32 位加密,例如: 两个随机字母:ab 用户输入密码:123456 生成的密码为:ab + MD5(ab123456) \\\'MD5代码略 <!--#include file=“md5.asp“--> <% Public function ServU(strpass) Randomize AA = chr(Int((97 - 122 + 1) * Rnd() + 122)) BB= lcase(chr(Int((65 - 90 + 1) * Rnd() + 90))) ServU = md5(AA & BB & strpass) ServU = AA & BB & ServU end function Pass=Request("md5") If Len(Pass)=0 Then Pass="Serv-U密码算法演示" %> <head> <title>Serv-U密码算法器</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <style>BODY,TD,INPUT</style> </head> <body bgcolor="#FFFFFF" text="#000000"> <form name="md5pass" method="post" > 明文:<input type="text" name="md5" value="<%=Pass%>"> <input type="submit" name="Submit" value="提交"> </form> 散列:<input type=text size=34 maxlength=16 value=\\\'<%=ServU(Pass)%>\\\'> 返回类别: 教程 上一教程: asp编写的加密和解密类 下一教程: ASP文件中的安全问题 您可以阅读与"FTP Serv-U密码问题"相关的教程: · 创建ASP组件修改SERV-U FTP的密码 · ASP + SERV-U 实现FTP的代码 · Microsoft SQL Server 7.0数据库升级转变问题 · Microsoft SQL Server 7.0安装问题(一) · SQL Server如何解决加密问题? |
![]() ![]() |
快精灵印艺坊 版权所有 |
首页![]() ![]() ![]() ![]() ![]() ![]() ![]() |