接口地址
https://www.chuangxinwu.cn/public/api/md5.php?text=需要加密的字符串
接口状态
正常 (HTTP 200) 上次检测:2026-05-19 14:28:57
📝 接口描述
============ 调用方式 ============
1. GET请求(推荐):
http://你的域名/md5.php?text=需要加密的字符串
2. POST请求(JSON格式):
POST http://你的域名/md5.php
Content-Type: application/json
{\"text\": \"需要加密的字符串\"}
3. POST请求(表单格式):
POST http://你的域名/md5.php
Content-Type: application/x-www-form-urlencoded
text=需要加密的字符串
批量加密(数组格式):
POST http://你的域名/md5.php
Content-Type: application/json
{\"texts\": [\"字符串1\", \"字符串2\", \"字符串3\"]}
📋 请求示例
【基础请求】
GET https://www.chuangxinwu.cn/public/api/md5.php?text=需要加密的字符串
【请求头】
Content-Type: application/json
Accept: application/json
【参数说明】
GET请求参数通过URL传递:
https://www.chuangxinwu.cn/public/api/md5.php?text=需要加密的字符串?参数名1=参数值1&参数名2=参数值2
【调用示例】
# cURL
curl -X GET 'https://www.chuangxinwu.cn/public/api/md5.php?text=需要加密的字符串' \
-H 'Content-Type: application/json'
# JavaScript (Fetch)
fetch('https://www.chuangxinwu.cn/public/api/md5.php?text=需要加密的字符串', {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
})
.then(res => res.json())
.then(data => console.log(data));
# PHP (cURL)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://www.chuangxinwu.cn/public/api/md5.php?text=需要加密的字符串');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
# Python (requests)
import requests
url = 'https://www.chuangxinwu.cn/public/api/md5.php?text=需要加密的字符串'
response = requests.get(url)
print(response.json())
📤 真实返回示例
{
"code": 200,
"success": true,
"action": "encrypt",
"original": "需要加密的字符串",
"md5": "d53bdf2cfcb83292ffd2a07eac6aa755",
"length": 32,
"type": "lowercase",
"algorithm": "MD5",
"timestamp": 1779172137,
"time": "2026-05-19 14:28:57"
}
🔧 JavaScript (Fetch)
fetch('/api/proxy.php?url=https%3A%2F%2Fwww.chuangxinwu.cn%2Fpublic%2Fapi%2Fmd5.php%3Ftext%3D%E9%9C%80%E8%A6%81%E5%8A%A0%E5%AF%86%E7%9A%84%E5%AD%97%E7%AC%A6%E4%B8%B2', {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
})
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err));
🐘 PHP (cURL)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://www.chuangxinwu.cn/public/api/md5.php?text=需要加密的字符串');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
📡 Python (requests)
import requests
url = 'https://www.chuangxinwu.cn/public/api/md5.php?text=需要加密的字符串'
response = requests.request('GET', url)
print(response.json())