语言
/v1/hash/hmac
计算任何字符串的密钥哈希消息身份验证代码 (HMAC)。 提供文本、密钥和可选算法。 默认值为 HMAC-SHA256。
The message to sign.
The secret key for the HMAC.
HMAC algorithm to use.
curl -X POST https://api.botoi.com/v1/hash/hmac \ -H "Content-Type: application/json" \ -d '{"text":"{\"event\":\"payment.completed\",\"id\":\"pay_abc123\"}","key":"whsec_s3cr3tK3y","algorithm":"sha256"}'
使用您的共享密钥重新计算传入 Stripe 或 GitHub Webhook 正文的 HMAC,并将其与签名标头进行比较。
通过计算规范请求字符串的 HMAC(与 AWS Signature V4 使用的模式匹配)来签署传出 API 请求。
通过附加路径的 HMAC 和到期时间戳作为查询参数来生成限时签名 URL。
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.