# wxdecoder **Repository Path**: lzq_li/wxdecoder ## Basic Information - **Project Name**: wxdecoder - **Description**: Single file version decoder of WeChat littile application encrypted data - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-21 - **Last Updated**: 2020-12-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # wxdecoder-微信公众平台加密数据解密组件 用途 --- 参见:微信公众平台[加密数据解密算法](https://mp.weixin.qq.com/debug/wxadoc/dev/api/signature.html) 特点 --- - 纯JS单文件 - 无其他第三方库依赖 - 方便集成到小程序 使用方法: --- 添加wxdecoder.js到小程序项目即可 代码示例: --- ```javascript // Obtain the WXDecoder constructor var WXDecoder = require('./wxdecoder.js') // Instante a WXDecoder var wxDecoder = new WXDecoder(appId, sessionKey); // Decode the data var data = wxDecoder.decode(iv, encryptedData); ``` 许可 --- 基于[**ricmoo/aes-js**](https://github.com/ricmoo/aes-js)修改完成,特此感谢。 WTH is this? --- This project is useful for Chinese developers only for now. So there is no more introduction in English. Special thanks for [**ricmoo/aes-js**](https://github.com/ricmoo/aes-js) : )