JSON 格式化
以两个空格缩进排版 JSON,压缩为单行并检查语法。
用 Web Crypto 生成 HMAC-SHA-256 / SHA-512。
在浏览器内运行 — 数据不会离开您的设备
HMAC signs a message with a shared secret for integrity. Computed in-browser via Web Crypto (HMAC-SHA-256 / SHA-512)—key and message never leave your device.
A hash digests data alone. HMAC mixes in a shared secret so only parties who know the key can produce the same signature.
No. Everything is computed in your browser with Web Crypto.
No. Major browsers reject zero-length HMAC keys in Web Crypto—provide at least one byte.