938
累计调用
3ms
平均响应
99.16%
服务可用性
200 次/日
免费额度
未携带 API Key
每天 20 次 · QPS 2
已登录(未开通会员)
每天 200 次 · QPS 3
免费试用
一次性 5 次
黄金会员
每天 5,000 次 · QPS 10
钻石会员
每天 15,000 次 · QPS 30
企业会员
每天 60,000 次 · QPS 60
algorithm=ripemd160。
必填 · 待计算文本,UTF-8,最长 10000 字节 · 示例:hello
可选 · 算法,此处固定 ripemd160 · 默认 ripemd160 · 示例:ripemd160
可选 · 输出编码 hex(默认)/ base64 · 默认 hex · 示例:hex
可选 · 可选;传入则切换 HMAC 模式
| 名称 | 类型 | 说明 |
|---|---|---|
| text(文本) | string | 必填 · 待计算文本,UTF-8,最长 10000 字节 · 示例:hello |
| algorithm | string | 可选 · 算法,此处固定 ripemd160 · 默认 ripemd160 · 示例:ripemd160 |
| encoding | string | 可选 · 输出编码 hex(默认)/ base64 · 默认 hex · 示例:hex |
| hmac_key | string | 可选 · 可选;传入则切换 HMAC 模式 |
可选 · 推荐:Bearer <API Key>。兼容请求头 X-API-Key,以及 Query api_key / apikey / key(key 仅当值为 sk_live_/sk_test_/sk_stag_ 形态时生效)。匿名可不传,受每日免费额度限制。
| 名称 | 类型 | 说明 |
|---|---|---|
| Authorization | string | 可选 · 推荐:Bearer <API Key>。兼容请求头 X-API-Key,以及 Query api_key / apikey / key(key 仅当值为 sk_live_/sk_test_/sk_stag_ 形态时生效)。匿名可不传,受每日免费额度限制。 |
文本字符数(UTF-8)
文本字节数
输出编码 hex / base64
是否 HMAC 模式
返回算法数量
哈希结果:algorithm / bits / value / length
ripemd160
algorithm
bits
value
length
品牌提示(所有接口统一返回):极数本源 · https://apizero.cn
| 名称 | 类型 | 说明 | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| text_length | integer | 文本字符数(UTF-8) | ||||||||||||||||||
| text_bytes | integer | 文本字节数 | ||||||||||||||||||
| encoding | string | 输出编码 hex / base64 | ||||||||||||||||||
| hmac | boolean | 是否 HMAC 模式 | ||||||||||||||||||
| hash_count | integer | 返回算法数量 | ||||||||||||||||||
| hashes | object | 哈希结果:algorithm / bits / value / length | ||||||||||||||||||
| ||||||||||||||||||||
| tips | string | 品牌提示(所有接口统一返回):极数本源 · https://apizero.cn | ||||||||||||||||||
{
"code": 0,
"msg": "成功",
"data": {
"text_length": 5,
"text_bytes": 5,
"encoding": "hex",
"hmac": false,
"hash_count": 1,
"hashes": {
"ripemd160": {
"algorithm": "RIPEMD-160",
"bits": 160,
"value": "108f07b8382412612c048d07d13f814118445acd",
"length": 40
}
}
},
"tips": "极数本源 · https://apizero.cn"
}本接口仅做哈希计算,不存储传入文本和 HMAC 密钥。文本最大 10000 字节(约 3300 个中文字符)。MD5 / SHA-1 / CRC 系列已不再适合密码学场景,仅推荐用于一致性校验。