# 加密算法

所有请求报文需要在请求数据后加如下参数：

:::caution[]
**appId**：申请应用后的appId
**timestamp**：毫秒级时间戳（以北京时间正负300秒内为有效）
**nonce**：10位随机数，接口调用一次之后放入缓存，防止被第二次使用，20s后清空
**sign**：签名，对timestamp、nonce、appKey进行md5加密，md5(timestamp+nonce+appKey)
:::

<Container>
 请求报文示例：
```js
{
  "id": "xxx",
  "appId": "xxx",
  "timestamp": "xxxxxxxxxxxxx",
  "nonce": "xxxxxxxxxx",
  "sign": "xxxxxxxxxxxxxx"
}
```
</Container>

