wechat-cryptor

0.0.3 • Public • Published
npm run compile
npm run test

demo


var cryptor = new WxCrypt(config.corpid, config.token, config.encodingAESKey);

@param timestamp [string]
@param nonce     [string]
@param encrypt   [string]
cryptor.getSHA1(timestamp, nonce, encrypt);

@param str       [string]  string to encrypt
cryptor.encrypt(str);

@param encoded [string]    encoded string
cryptor.decrypt(encoded);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i wechat-cryptor

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • broooooklyn