asp实现的sha1加密解密代码(和C#兼容)(4)
}
}
return str;
}
</script>
<%
function Sha1(Data)
Sha1 = hex_sha1(Data)
end function
%>
<%
Response.Write(Sha1("abcdef"))
%>
复制代码 代码如下:
public void ProcessRequest(HttpContext context)
{
context.Response.Write(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile("abcdef", "SHA1").ToLower());
}