当前位置:K88软件开发文章中心编程语言AspAsp01 → 文章内容

使用md5给实际字符串加密码

减小字体 增大字体 作者:佚名     来源:asp编程网  发布时间:2018-12-30 8:30:40

使用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给实际字符串加密码