0.0.3 • Published 8 years ago

wechat-cryptor v0.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago
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);