FTP serv-u Password problem

Source: Internet
Author: User
Tags chr ftp md5
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)%> ' >



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.