{
  "slug": "des-cipher",
  "name": "gizza-ai/des-cipher",
  "version": "0.1.0",
  "title": "DES Cipher — Encrypt/decrypt with DES (ECB/CBC) — gizza.ai",
  "description": "Encrypt or decrypt data with single DES in ECB or CBC mode, with hex/base64 I/O — in your browser. For legacy interop. Nothing is uploaded.",
  "tags": [
    "des",
    "des encrypt",
    "des decrypt",
    "legacy cipher",
    "ecb",
    "cbc"
  ],
  "category": "security",
  "urls": {
    "page": "https://gizza.ai/tools/des-cipher/",
    "markdown": "https://gizza.ai/tools/des-cipher/index.md",
    "descriptor": "https://gizza.ai/tools/des-cipher/tool.json",
    "deep_link_example": "https://gizza.ai/tools/des-cipher/?data=Text%20to%20encrypt%E2%80%A6&operation=encrypt&cipher=cbc&key=base64%20or%20hex%20key&iv=base64%20or%20hex%20iv&format=base64"
  },
  "cli": "gizza tool des-cipher \"Text to encrypt…\" 'key=base64 or hex key'",
  "tool": {
    "description": "Encrypt or decrypt data with single DES in ECB or CBC mode, using an 8-byte key (and 8-byte iv for cbc). key, iv and ciphertext are hex or base64 (set format; default base64); the plaintext is UTF-8. NOTE: DES is a legacy 56-bit cipher and is NOT secure — use it only for interop with old systems or to decrypt legacy data; for real encryption use aes-cipher or text-encrypt.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "cipher": {
          "default": "cbc",
          "description": "DES mode of operation: cbc (default) or ecb.",
          "enum": [
            "cbc",
            "ecb"
          ],
          "type": "string"
        },
        "data": {
          "description": "For encrypt: the plaintext. For decrypt: the ciphertext, encoded with `format`.",
          "type": "string"
        },
        "format": {
          "default": "base64",
          "description": "Encoding for the key, iv, and ciphertext (base64 default, or hex). The plaintext is always UTF-8 text.",
          "enum": [
            "base64",
            "hex"
          ],
          "type": "string"
        },
        "iv": {
          "description": "The 8-byte IV, encoded with `format`. Required for cbc; omit for ecb.",
          "type": "string"
        },
        "key": {
          "description": "The 8-byte DES key, encoded with `format`.",
          "type": "string"
        },
        "operation": {
          "default": "encrypt",
          "description": "encrypt (default) or decrypt.",
          "enum": [
            "encrypt",
            "decrypt"
          ],
          "type": "string"
        }
      },
      "required": [
        "data",
        "key"
      ],
      "type": "object"
    }
  }
}