FTP Serv-U密码问题 - 技术应用子站 - 赛迪网

来源:百度文库 编辑:神马文学网 时间:2024/04/29 07:25:02
FTP Serv-U密码问题
作者: 来源:365base 发布时间:2006.07.26
【Java专区】【网络安全】【网管专区】【linux专区】【数据库专区】【进入论坛】【IT博客】
【Eclipse】 【PHP】 【DB2】 【Ajax】 【Struts】 【Spring】

我们利用Serv-U的obdc功能,可以把FTP用户信息存在数据库中,这样对Web操作方便了很多。ServU密码加密算法为随机码与MD5 32 位加密,例如:
两个随机字母:ab
用户输入密码:123456
生成的密码为:ab + MD5(ab123456)
‘MD5代码略

<%
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密码算法演示"
%>

Serv-U密码算法器





明文:


散列:‘>