GET
文本工具
中文加密
对内容转换为某些中文
累计调用 12
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/ChineseEncryption
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 0 | string | 必填 | 节点,/encode,/decode分别为加密,解密 | 暂无 |
| content | string | 必填 | 需要加解密的内容 | 暂无 |
| type | string | 可选 | 返回格式 | 暂无 |
返回字段
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | number | 状态码 |
| message | string | 返回提示 |
| data | array | 返回数据 |
| data.encode | string | 加密内容 |
| data.decode | string | 解密内容 |
响应示例
200 OK
{
"code": 1,
"message": "令亽亠以亥亽",
"data": {
"encode": "令亽亠以亥亽",
"decode": "你好"
},
"timestamp": 1791344834523,
"req_timestamp": 1791344834498
}
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/ChineseEncryption?0=%E6%9A%82%E6%97%A0&content=%E6%9A%82%E6%97%A0&type=%E6%9A%82%E6%97%A0"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/ChineseEncryption?0=%E6%9A%82%E6%97%A0&content=%E6%9A%82%E6%97%A0&type=%E6%9A%82%E6%97%A0");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/ChineseEncryption?0=%E6%9A%82%E6%97%A0&content=%E6%9A%82%E6%97%A0&type=%E6%9A%82%E6%97%A0");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/ChineseEncryption?0=%E6%9A%82%E6%97%A0&content=%E6%9A%82%E6%97%A0&type=%E6%9A%82%E6%97%A0", timeout=10)
print(r.json())