weixin-signature

0.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i weixin-signature

Weekly Downloads

3

Version

0.1.1

License

none

Last publish

Collaborators

  • scaret