{
  "slug": "blowfish-cipher",
  "name": "gizza-ai/blowfish-cipher",
  "version": "0.1.0",
  "title": "Blowfish Cipher — Encrypt/decrypt with Blowfish (ECB/CBC) — gizza.ai",
  "description": "Encrypt or decrypt data with the Blowfish cipher in ECB or CBC mode, with hex/base64 I/O — in your browser. Variable 4–56 byte key. Nothing is uploaded.",
  "tags": [
    "blowfish",
    "blowfish encrypt",
    "blowfish decrypt",
    "block cipher",
    "ecb",
    "cbc"
  ],
  "category": "security",
  "urls": {
    "page": "https://gizza.ai/tools/blowfish-cipher/",
    "markdown": "https://gizza.ai/tools/blowfish-cipher/index.md",
    "descriptor": "https://gizza.ai/tools/blowfish-cipher/tool.json",
    "deep_link_example": "https://gizza.ai/tools/blowfish-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 blowfish-cipher \"Text to encrypt…\" 'key=base64 or hex key'",
  "tool": {
    "description": "Encrypt or decrypt data with the Blowfish cipher in ECB or CBC mode, using a variable-length key (4–56 bytes) and an 8-byte iv for cbc. key, iv and ciphertext are hex or base64 (set format; default base64); the plaintext is UTF-8. NOTE: Blowfish is a legacy 64-bit-block cipher (vulnerable to Sweet32/birthday attacks on large data) — use it for interop with old systems or to decrypt legacy data; for new encryption use aes-cipher or text-encrypt.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "cipher": {
          "default": "cbc",
          "description": "Blowfish 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 Blowfish key (4–56 bytes), encoded with `format`.",
          "type": "string"
        },
        "operation": {
          "default": "encrypt",
          "description": "encrypt (default) or decrypt.",
          "enum": [
            "encrypt",
            "decrypt"
          ],
          "type": "string"
        }
      },
      "required": [
        "data",
        "key"
      ],
      "type": "object"
    }
  }
}