GET
文本工具
MD5 加密
把任意文本转成 32 位 MD5 值,支持大写和原始二进制输出。
累计调用 198
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/md5
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| text | string | 必填 | 要加密的文本 | 测试文本 |
| upper | int | 可选 | 传 1 返回大写 | 暂无 |
| raw | int | 可选 | 传 1 返回原始二进制 | 1 |
返回字段
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| data.input | string | 原始文本 |
| data.md5 | string | MD5 结果 |
| data.length | int | 长度固定 32 |
响应示例
200 OK
{"code":200,"msg":"success","data":{"input":"测试文本","md5":"d9f09b7badda07e6db79008e3e05a69d","length":32}}
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/md5?text=%E6%B5%8B%E8%AF%95%E6%96%87%E6%9C%AC&upper=%E6%9A%82%E6%97%A0&raw=1"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/md5?text=%E6%B5%8B%E8%AF%95%E6%96%87%E6%9C%AC&upper=%E6%9A%82%E6%97%A0&raw=1");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/md5?text=%E6%B5%8B%E8%AF%95%E6%96%87%E6%9C%AC&upper=%E6%9A%82%E6%97%A0&raw=1");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/md5?text=%E6%B5%8B%E8%AF%95%E6%96%87%E6%9C%AC&upper=%E6%9A%82%E6%97%A0&raw=1", timeout=10)
print(r.json())