Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaoyou_doc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyinting
jiaoyou_doc
Commits
bc6bb2ec
Commit
bc6bb2ec
authored
Jan 22, 2021
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
22fb855c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
encode_single_bot_chat.md
encode_single_bot_chat.md
+50
-0
No files found.
encode_single_bot_chat.md
0 → 100644
View file @
bc6bb2ec
##### aes加密解密
aesKey: aes加密用的key
aesIv: aes加密用的偏移量
AES/CBC/PKCS5Padding
##### rsa签名生成规则
privateKey: 请求方的rsa私钥,生成签名
qiwuPublicKey: 远程服务的公钥,响应内容的签名验证
请求签名生成的串=请求过期时间的时间戳的字串+请求参数key顺排序(timestamp=123&uid=130)字串+请求体的字符串
响应的验证签名的字符串=响应过期时间的时间戳的字串+响应体的字符串
##### 请求参数的规则
请求参数key顺排序(timestamp=123&uid=130)字串,进行aes加密之后拼接到地址后面, url+?q={aes加密串}
##### 基本结构
RequestHeaders:
| key | value |
| :----------- | :------------: |
| Content-Type | application/json;charset=utf-8 |
| App-Channel-Id | DEFAULT(选填) |
| qiwu-sign-e-t | 请求签名的到期时间戳 |
| qiwu-sign | 签名的到期时间戳+生成请求参数(key升序排序,&key=value符号连接的串)+请求体串 的签名 |
RequestBody:
```
aes加密串
```
ResponseHeaders:
| key | value |
| :----------- | :------------: |
| Content-Type | application/json;charset=utf-8 |
| qiwu-sign | 签名的到期时间戳串+响应体data串 的签名 |
| qiwu-sign-e-t | 响应签名的到期时间戳 |
responseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": "aes加密串"
}
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment