0.0.6 • Published 4 years ago
@wangduanduan/wx-crypto v0.0.6
wx-crypto
微信加解密库
用法
// 初始化
let wxCrypto = new WxCrypto(token, encodingAesKey, corpId)
// 获取签名
let signature = wxCrypto.getSignature(timestamps, nonce, msg_encrypt)
// 加密
let encrypt_msg = wxCrypto.decrypt(plain_text)
// 解密
let plain_msg = wxCrypto.decrypt(msg_encrypt)
接口说明
- class WxCrypto()
- getSignature
- decrypt
- decrypt