hlf_513/dingtalk-crypto
Composer 安装命令:
composer require hlf_513/dingtalk-crypto
包简介
钉钉开放平台加解密消息体(openssl版本)
README 文档
README
钉钉开放平台的消息体加解密(openssl加密版本);因为php7以后mcrypt扩展被舍弃
Install
composer require hlf_513/dingtalk-crypto
Usage
$crypto = new Crypto(
$token,
$encodingAesKey,
$suiteKey
);
$string = 'success';
$timestamp = '1515664989185';
$nonce = '53IP1CdM';
// 加密
$ret = $crypto->encryptMsg($string, $timestamp, $nonce);
$ret = json_decode($ret, 1);
// 解密
$ret = $crypto->decryptMsg($ret['msg_signature'], $timestamp, $nonce, $ret['encrypt']);
// output: $ret === 'success'
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-15