wechat-msg-crypt

0.1.7 • Public • Published

wechat-msg-crypt

wx = require 'wechat-msg-crypt'

wx = new WxMsg token, aesKey, appId

wx.decryptMsg msg_signature, timestamp, nonce, xml, (err, msg) ->
  assert.equal msg.ToUserName, 'gh_c6cd7f443d76'
  assert.equal msg.FromUserName, 'oZ9F-jsydU2FZRVDQMYZ8rV4hrOU'
  assert.equal msg.CreateTime, 1427612890
  assert.equal msg.MsgType, 'text'
  assert.equal msg.Content, 'dev'
  assert.equal msg.MsgId, '6131550674102361012'

wx.encryptMsg timestamp, nonce, msg

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.7
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.7
    1
  • 0.1.6
    0
  • 0.1.4
    0
  • 0.1.3
    0

Package Sidebar

Install

npm i wechat-msg-crypt

Weekly Downloads

1

Version

0.1.7

License

MIT

Last publish

Collaborators

  • lusionx