Sm2 암호화 복호화

Free online SM2 encrypt/decrypt tool. GM/T0003 standard, supports C1C3C2 (default) and C1C2C3 modes with auto detection, pure-frontend sm-crypto, no upload.

사용법

기능

  • SM2 公钥加密 + 私钥解密二合一,操作下拉切换
  • 支持 C1C3C2(GM/T 0003 默认)与 C1C2C3 两种输出
  • 解密自动识别 C1C3C2 / C1C2C3 模式
  • 严格国密 GM/T 0003 标准

활용 사례

  • 加密:用收件方 SM2 公钥(130 hex,04 开头)
  • 解密:用自己的 SM2 私钥(64 hex),密文以 hex 形式粘贴
  • 纯前端,所有计算在浏览器内完成,数据不出浏览器

Runtime

  • 现代浏览器(Chrome/Firefox/Safari/Edge)
  • 依赖 /static/lib/sm2.js(sm-crypto 0.4.0 静态化)
  • 无需后端,数据不上传保护隐私

나이nt API 사용법

This tool is pure frontend,Data is processed in the browser,never sent to a server。 manifest 中 api_url 为空,/api/sm2_encrypt_decrypt/ 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_encrypt_decrypt/schema.json

// Step 2: 在浏览器中执行工具逻辑
// SM2 加/解密 在工具页 JS 中实现