weixin-signature
v0.1.1
Published
Provide the Signature Of Weixin JSAPI
Downloads
6
Readme
weixin-signature
微信JSAPI签名生成算法
Provide the Signature Of Weixin JSAPI
Example:
var sign = require("weixin-signature").sign;
var config = {
noncestr : "Wm3WZYTPz0wzccnW",
jsapi_ticket: "sM4AOVdWfPE4DxkXGEs8VMCPGGVi4C3VM0P37wVUCFvkVAy_90u5h9nbSlYy3-Sl-HhTdfl2fzFy1AOcHKP7qg",
timestamp : 1414587457,
url : "http://mp.weixin.qq.com"
};
sign(config); // should output {signature: "f4d90daf4b3bca3078ab155816175ba34c443a7b" ...}