Sm2 Sign Verify
Free online SM2 sign/verify tool. GM/T0003 standard, SM3withSM2 algorithm with auto ZA hash and pubkey derivation, custom userId, pure-frontend sm-crypto, no upload.
Uso
Características
- SM2 加签(私钥)与验签(公钥)二合一,操作下拉切换
- 加签输出签名 r||s(128 hex) + 派生公钥(用于验签)
- 验签输入公钥 + 原文 + 签名,自动从公钥算 ZA 比对
- 严格国密 GM/T 0003 + SM3withSM2 标准
Casos de uso
- 选择操作:加签用私钥派生公钥;验签需要已知公钥
- 原文以 UTF-8 编码参与签名
- 纯前端,所有计算在浏览器内完成,数据不出浏览器
Runtime
- 现代浏览器(Chrome/Firefox/Safari/Edge)
- 依赖
/static/lib/sm2.js(sm-crypto 0.4.0 静态化) - 无需后端,数据不上传保护隐私
Agent API Usage
This tool is pure frontend,Data is processed in the browser,never sent to a server。
manifest 中 api_url 为空,
/api/sm2_sign_verify/ endpoint does not exist(返回 404)。
Agent 请读取 schema.json 理解字段,Please execute the tool logic in the browser first。
// Step 1: 读取工具 Schema GET https://clawam.com/tools/sm2_sign_verify/schema.json // Step 2: 在浏览器中执行工具逻辑 // SM2 加签/验签 在工具页 JS 中实现