All Projects → beary → wx-ding-aes

beary / wx-ding-aes

Licence: MIT license
Node.js 微信开放平台、企业微信、钉钉第三方回调接口 AES 解密库

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to wx-ding-aes

wxbizdatacrypt
微信小程序加密数据解密算法Go版
Stars: ✭ 132 (+193.33%)
Mutual labels:  aes, weixin
public
util toolkit for go.golang 通用函数包
Stars: ✭ 135 (+200%)
Mutual labels:  aes, weixin
AES
Implementation of Rijndael cipher algorithm
Stars: ✭ 42 (-6.67%)
Mutual labels:  aes
simpira384
An AES-based 384 bit permutation.
Stars: ✭ 18 (-60%)
Mutual labels:  aes
aesCbc
aes-cbc加密解密
Stars: ✭ 68 (+51.11%)
Mutual labels:  aes
AES
C++ AES implementation
Stars: ✭ 365 (+711.11%)
Mutual labels:  aes
jeewx-boot
JAVA版免费开源的微信管家平台。支持微信公众号、小程序、第三方平台等。平台已经实现了公众号基础管理、群发、系统权限、抽奖活动、小程序官网等功能,便于二次开发,可以快速搭建微信应用!
Stars: ✭ 992 (+2104.44%)
Mutual labels:  weixin
wx-domain-test
微信域名防封系统 实时检测 自动切换域名 消息提醒
Stars: ✭ 71 (+57.78%)
Mutual labels:  weixin
wechat-page-sharing
Wordpress微信分享插件:你可以控制Wordpress页面的微信分享内容,包括Url、标题、图片和内容。
Stars: ✭ 21 (-53.33%)
Mutual labels:  weixin
oseid
Microchip AVR based smartcard/token with ECC and RSA cryptography
Stars: ✭ 17 (-62.22%)
Mutual labels:  aes
robot
微信机器人
Stars: ✭ 24 (-46.67%)
Mutual labels:  weixin
cryptalk
HTML5/Node.js based, client side (E2EE) encrypted instant chat
Stars: ✭ 73 (+62.22%)
Mutual labels:  aes
go-wechat
💥weixin、wechat、微信公众平台、企业微信 golang/go sdk
Stars: ✭ 18 (-60%)
Mutual labels:  weixin
CppSecurity
C++ Security Library
Stars: ✭ 24 (-46.67%)
Mutual labels:  aes
ZipArchive
A single-class pure VB6 library for zip with ASM speed
Stars: ✭ 38 (-15.56%)
Mutual labels:  aes
aescryptable
AES encryption/decryption with random iv. Swift 5 and up.
Stars: ✭ 29 (-35.56%)
Mutual labels:  aes
enigma
A fast, native, cryptographic engine for the web
Stars: ✭ 101 (+124.44%)
Mutual labels:  aes
optiga-trust-m
OPTIGA™ Trust M Software Framework
Stars: ✭ 86 (+91.11%)
Mutual labels:  aes
mpvue canvas drawer
[mpvue版本]微信小程序上canvas绘制图片助手,一个json就制作分享朋友圈图片
Stars: ✭ 43 (-4.44%)
Mutual labels:  weixin
vux-weixin
基于vue,vux,运行在微信上,增加了 http拦截器, auth权限 , jwt认证 , storage ,目录结构灵感来源于ngx-admin
Stars: ✭ 14 (-68.89%)
Mutual labels:  weixin

wx-ding-aes

微信开放平台、企业微信、钉钉第三方回调接口 AES 加密解密库

Usage

npm install wx-ding-aes --save
/* javascript */
const aes = require('wx-ding-aes')

/* typescript */
import * as aes from 'wx-ding-aes'

API

decode(text, encodingAESKey): string

text: 微信/钉钉发送给回调接口的密文

encodingAESKey: 创建套件时的 encodingAESKey

return: 对于钉钉,返回值为一个 JSON 字符串,使用 JSON.parse 即可拿到 JSON 对象。

对于企业微信和微信开发平台,返回值为被加密的 xml 字符串,可以使用 xml 解析的库来进行处理。

const text = 'xxx'
const encodingAESKey = 'xxx'
const res = aes.decode(text, encodingAESKey)

encode(text, encodingAESKey, key): string

text: 需要加密的内容

encodingAESKey: 创建套件时的 encodingAESKey

key:

  • 对于钉钉参考官方文档中的 $key
  • 对于企业微信参考官方文档中的 CorpID
  • 对于微信开放平台参考官方文档中的 消息体加密 中的描述则是 appid 。

return: 加密后的密文

const text = 'xxx'
const encodingAESKey = 'xxx'
const key = 'xxx'
const res = aes.encode(text, encodingAESKey, key)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].