{
  "name": "AES 加密解密",
  "slug": "aes",
  "description": "在线 AES 对称加密解密工具，支持 AES-128/192/256 五种工作模式",
  "api_url": "/api/aes/",
  "ui_url": "/tools/aes/",
  "schema_url": "/tools/aes/schema.json",
  "endpoint": "POST /api/aes/",
  "request_schema": {
    "type": "object",
    "required": [
      "action",
      "text",
      "key"
    ],
    "properties": {
      "action": {
        "type": "string",
        "enum": [
          "encrypt",
          "decrypt"
        ]
      },
      "text": {
        "type": "string"
      },
      "key": {
        "type": "string",
        "description": "16/24/32 字节"
      },
      "iv": {
        "type": "string",
        "description": "16 字节, ECB/CTR 可空"
      },
      "keySize": {
        "type": "integer",
        "enum": [
          128,
          192,
          256
        ],
        "default": 256
      },
      "mode": {
        "type": "string",
        "enum": [
          "cbc",
          "ecb",
          "cfb",
          "ofb",
          "ctr"
        ],
        "default": "cbc"
      },
      "output": {
        "type": "string",
        "enum": [
          "hex",
          "base64"
        ],
        "default": "hex"
      }
    }
  }
}