1.1.3 • Published 2 years ago

we-crypto v1.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

使用说明

安装

# npm
npm install we-crypto -S

# yarn
yarn add we-crypto -S

使用方式

import WeCrypto from "we-crypto";

const we = new WeCrypto({
  token: "QDG6eK",
  encodingAESKey: "jWmYm7qr5nMoAUwZRjGtBxmz3KA1tkAj3ykkR6q2B2C",
	
  // 请求query参数中的内容
  query: {
    timestamp: "",
    nonce: "",
    echostr: ""
  }
});


// 1. 验证消息是否被篡改
let devSign = we.getSignature();
console.log(devSign === msg_signature);


// 2.解密消息内容
let xml = we.decryptMsg();
console.log(xml);
1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago