- ·上一篇文章:asp网站防采集代码
- ·下一篇文章:ASP编程中常用到的15个例子代码
使用md5给实际字符串加密码
使用md5给字符串加密
md5.asp代码见 
www.aspprogram.cn/soft.asp?id=39
index.htm
<
form 
name="
form1"
 
method="
post"
 
action="
2.asp"
>
要加密的字符串:<
input 
type="
text"
 
name="
ch"
>
<
br>
<
input 
type="
submit"
 
value="
加密"
>
<
br>
<
/form>
2.asp
<
!--
#include 
file="
md5.asp"
-->
<
%
 
c=request("
ch"
)
 
response.write 
c&
#38
"
加密得到的字符串为:"
&
#38
md5(c)
 
%>
完毕,运行你的程序,看看结果
md5.asp代码见 
www.aspprogram.cn/soft.asp?id=39
index.htm
<
form 
name="
form1"
 
method="
post"
 
action="
2.asp"
>
要加密的字符串:<
input 
type="
text"
 
name="
ch"
>
<
br>
<
input 
type="
submit"
 
value="
加密"
>
<
br>
<
/form>
2.asp
<
!--
#include 
file="
md5.asp"
-->
<
%
 
c=request("
ch"
)
 
response.write 
c&
#38
"
加密得到的字符串为:"
&
#38
md5(c)
 
%>
完毕,运行你的程序,看看结果
使用md5给实际字符串加密码