MD5 加密方法

来源:百度知道 编辑:UC知道 时间:2024/05/17 09:18:44
*4CC1855295BF09DDB540D24880A0F4EB86E82990
这段代码是通过PHP转换成的,原码是123456789,我想知道,ASP怎么转换才能变成这个样?谁有代码的,给我代码,谢谢了!
1楼的s B,别JJYY了
二楼的,我要的是代码,这做,我也会,但我转不出这类型的!
三楼的,你试过没啊,是不是加到这种类型啊,这个代码我早知道了!

第一步 引入ASP的MD5函数库 网上有很多 你可以搜一下哦
第二步 调用 比如
source = 123456789
destinyMD5Code = md5(source)

你可以参考这里:
http://www.diybl.com/course/4_webprogram/asp/aso_js/200824/98873.html

<%
private const bits_to_a_byte = 8
private const bytes_to_a_word = 4
private const bits_to_a_word = 32
private m_lonbits(30)
private m_l2power(30)

private function lshift(lvalue, ishiftbits)
if ishiftbits = 0 then
lshift = lvalue
exit function
elseif ishiftbits = 31 then
if lvalue and 1 then
lshift = &h80000000
else
lshift = 0
end if
exit function
elseif ishiftbits < 0 or ishiftbits > 31 then
err.raise 6
end if

if (lvalue and m_l2power(31 - ishiftbits)) then
lshift = ((lvalue and m_lonbits(31 - (ishiftbits + 1))) *