1 ASP. NET ------> Asp
Formsauthentication. hashpasswordforstoringinconfigfile (password. Text, "MD5 ")
Result:
12c403b91165d25d8cd021d5f9b5bb7f
The strings encrypted by MD5 in ASP are as follows:
1165d25d8cd021d5
The string obtained from Asp.net is 9-25 characters long and lowercase. The encrypted result in ASP is obtained.
2 ASP --------> ASP. NET
If you want to use ASP Web pages first, but change the encryption result to a string such as ASP. NET 12c403b91165d25d8cd021d5f9b5bb7f, it will be convenient to use ASP. NET later. You can verify the encryption used during login.
<! -- # Include file = "../INC/md5.asp" -->
<! -- # Include file = "../INC/md5_net.asp" -->
<%
Pwd = Replace (TRIM (Request ("password ")),"'","")
Pwd_net = Replace (TRIM (Request ("password ")),"'","")
Pwd = MD5 (PWD)
Pwd_net = md5_net (pwd_net)
... Rs. open ()
If RS ("password") = PWD or RS ("password") = pwd_net then
RS ("password") = pwd_net
End if
.....
%>
In this way, if the user logs on, the 16-bit password will be automatically converted to ASP. NET.