0.1.1 • Published 9 years ago

weixin-signature v0.1.1

Weekly downloads
14
License
-
Repository
github
Last release
9 years ago

weixin-signature

微信JSAPI签名生成算法

Provide the Signature Of Weixin JSAPI

Weixin Signature Definition

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" ...}