GET
tool-hash
公开接口 累计 2 次/api/v1/tool-hash
支持 MD5/SHA/CRC 等全部 PHP 哈希算法
/api/v1/tool-hash
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
text |
string |
必填 | - | 待哈希文本 |
algorithm |
string |
可选 | sha256 |
哈希算法,如 md5 / sha256 / crc32b |
key |
string |
可选 | - | HMAC 密钥(可选) |
uppercase |
boolean |
可选 | |
输出大写 |
{
"ok": true,
"data": {
"result": {
"algorithm": "sha256",
"hmac": false,
"digest": "2cf24d...",
"length": 64
}
}
}
curl -X GET '/api/v1/tool-hash?algorithm=sha256&uppercase='