{
  "name": "RSA 公私钥加密",
  "slug": "rsa",
  "description": "在线 RSA 公私钥生成、加密、解密、签名验签工具",
  "api_url": "/api/rsa/",
  "ui_url": "/tools/rsa/",
  "schema_url": "/tools/rsa/schema.json",
  "endpoint": "POST /api/rsa/",
  "request_schema": {
    "type": "object",
    "required": [
      "action"
    ],
    "properties": {
      "action": {
        "type": "string",
        "enum": [
          "genkeypair",
          "encrypt",
          "decrypt",
          "sign",
          "verify"
        ]
      },
      "bits": {
        "type": "integer",
        "enum": [
          1024,
          2048,
          4096
        ]
      },
      "text": {
        "type": "string"
      },
      "publicKey": {
        "type": "string"
      },
      "privateKey": {
        "type": "string"
      },
      "signature": {
        "type": "string"
      }
    }
  }
}