MD5校验
校验文本的MD5哈希值是否匹配
GET
https://api.tinyaii.cn/v1/md5/verify
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| text | string | 必填 | 原始文本 | hello |
| hash | string | 必填 | MD5哈希值 | 5d41402abc4b2a76b9719d911017c592 |
返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| match | bool | 是否匹配 |
| text | string | 原始文本 |
| hash | string | 计算的MD5值 |
返回示例
{
"code": 200,
"data": {
"match": True,
"text": "hello",
"hash": "5d41402abc4b2a76b9719d911017c592"
},
"message": "success"
}
调用示例
curl "https://api.tinyaii.cn/v1/md5/verify?text=hello&hash=5d41402abc4b2a76b9719d911017c592" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch("https://api.tinyaii.cn/v1/md5/verify?text=hello&hash=5d41402abc4b2a76b9719d911017c592", {
headers: { "Authorization": "Bearer YOUR_API_KEY" },
});
console.log(await res.json());import requests
resp = requests.get(
"https://api.tinyaii.cn/v1/md5/verify",
params={"text": "hello", "hash": "5d41402abc4b2a76b9719d911017c592"},
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=10,
)
print(resp.json())把 YOUR_API_KEY 换成你的密钥即可直接运行。密钥只保存在你自己的设备上。