0.0.6 • Published 4 years ago

@wangduanduan/wx-crypto v0.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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
0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago