📋

API调用说明

每个用户可以通过个人中心获取 API 密钥,使用该密钥进行批量解密请求,在套餐界面开通相应套餐即可使用此API调用。

认证方式:

方式一:X-API-Key: hd_a1b2c3d4e5f6g7h8

方式二:Authorization: Bearer hd_a1b2c3d4e5f6g7h8

⚙️

功能说明

目前功能支持 MD5、SHA256 解密算法,后续会支持更多解密算法。解密不成功不扣费。

批量解密

POST /v1/decrypt/batch(最多500个)

💻

请求代码demo

import requests
import json

# 批量解密示例
url = "https://your-domain.com/v1/decrypt/batch"
headers = {
    "X-API-Key": "hd_a1b2c3d4e5f6g7h8",
    "Content-Type": "application/json"
}

data = {
    "hashes": [
        {
            "hash": "5d41402abc4b2a76b9719d911017c592",
            "type": "md5"
        },
        {
            "hash": "aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d",
            "type": "sha1"
        }
    ]
}

response = requests.post(url, headers=headers, json=data)
result = response.json()
print(result)
📦

返回包demo

{
  "code": 20000,
  "message": "解密成功",
  "data": {
    "results": [
      {
        "hash": "5d41402abc4b2a76b9719d911017c592",
        "type": "md5",
        "result": "hello",
        "found": true
      },
      {
        "hash": "aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d",
        "type": "sha1",
        "result": "hello",
        "found": true
      }
    ],
    "total": 2,
    "success_count": 2,
    "failed_count": 0
  }
}
⚠️

错误响应码

20000请求成功
成功
40001请求参数错误
错误
40002参数验证失败
错误
40101缺少 API 密钥
错误
40102无效的 API 密钥
错误
40103API 密钥格式不正确
错误
40104API 密钥已禁用或过期
错误
42901配额不足
警告
50001服务器内部错误
错误
50002解密服务失败
错误