<%
'string1=jsapi_ticket=sM4AOVdWfPE4DxkXGEs8VMCPGGVi4C3VM0P37wVUCFvkVAy_90u5h9nbSlYy3-Sl-HhTdfl2fzFy1AOcHKP7qg&noncestr=Wm3WZYTPz0wzccnW×tamp=1414587457&url=http://mp.weixin.qq.com?params=value
'对string1进行sha1签名,得到signature:0f9de62fce790f9a083d5c99e95740ceb90c27ed
'上面来源:https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#62
'下面示例中hex_sha1()方法得到的加密和 例子的加密串一直
dim string1_ceshi
string1_ceshi="jsapi_ticket=sM4AOVdWfPE4DxkXGEs8VMCPGGVi4C3VM0P37wVUCFvkVAy_90u5h9nbSlYy3-Sl-HhTdfl2fzFy1AOcHKP7qg&noncestr=Wm3WZYTPz0wzccnW×tamp=1414587457&url=http://mp.weixin.qq.com?params=value"
response.Write("hex_sha1:")
response.Write(hex_sha1(string1_ceshi))
response.Write("<br>")
response.Write("b64_sha1:")
response.Write(b64_sha1(string1_ceshi))
response.Write("<br>")
response.Write("str_sha1")
response.Write(str_sha1(string1_ceshi))
response.Write("<br>")
response.Write("hex_hmac_sha1")
response.Write(hex_hmac_sha1("hex_hmac_sha1",string1_ceshi))
response.Write("<br>")
response.Write("b64_hmac_sha1")
response.Write(b64_hmac_sha1("b64_hmac_sha1",string1_ceshi))
response.Write("<br>")
response.Write("str_hmac_sha1")
response.Write(str_hmac_sha1("str_hmac_sha1",string1_ceshi))
response.Write("<br>")
%>
<script language="jscript" runat="server">
function getjson(str){