serv-u| problem we use the OBDC function of Serv-u, the FTP user information can be in the database, so it is convenient for web operation. SERVU password encryption algorithm for random code and MD5 32-bit encryption, for example:
Two random letters: AB
User input Password: 123456
The generated password is: AB + MD5 (ab123456)
' MD5 code slightly
<!--#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 Cryptographic algorithm Demo"
%>
<title>serv-u cipher Algorithm </title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<style>BODY,TD,INPUT</style>
<body bgcolor= "#FFFFFF" text= "#000000" >
<form name= "Md5pass" method= "POST" >
PlainText: <input type= "text" name= "MD5" value= "<%=Pass%>" >
<input type= "Submit" name= "Submission" value= "submitted" >
</form>
Hash: <input type=text size=34 maxlength=16 value= ' <%=servu ' (pass)%> ' >