{
  "slug": "rc2-cipher",
  "name": "gizza-ai/rc2-cipher",
  "version": "0.1.0",
  "title": "RC2 Cipher — Encrypt/decrypt with RC2 (ECB/CBC, RFC 2268) — gizza.ai",
  "description": "Encrypt or decrypt with the RC2 block cipher (RFC 2268) in ECB or CBC mode, configurable effective key bits, hex or Base64 output — in your browser.",
  "tags": [
    "rc2",
    "rc2 encrypt",
    "rc2 decrypt",
    "rfc 2268",
    "effective key length",
    "ecb",
    "cbc",
    "legacy cipher"
  ],
  "category": "security",
  "urls": {
    "page": "https://gizza.ai/tools/rc2-cipher/",
    "markdown": "https://gizza.ai/tools/rc2-cipher/index.md",
    "descriptor": "https://gizza.ai/tools/rc2-cipher/tool.json",
    "deep_link_example": "https://gizza.ai/tools/rc2-cipher/?data=Text%20to%20encrypt%E2%80%A6&operation=encrypt&cipher=cbc&key=base64%20or%20hex%20key&iv=base64%20or%20hex%20iv&effective_key_bits=0&format=base64"
  },
  "cli": "gizza tool rc2-cipher \"Text to encrypt…\" 'key=base64 or hex key'",
  "tool": {
    "description": "Encrypt or decrypt data with the RC2 block cipher (RFC 2268) in ECB or CBC mode, at a configurable effective key length (T1, in bits). key (1-128 bytes), iv (8 bytes, cbc only) and ciphertext are hex or base64 (set format; default base64); the plaintext is UTF-8. effective_key_bits 0 = use the key's full length; PKCS#7 padding. NOTE: RC2 is a legacy cipher (old PKCS#12 / S/MIME / Microsoft formats) and is NOT secure for new designs — use it only for interop or to decrypt legacy data; for real encryption use aes-cipher or text-encrypt.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "cipher": {
          "default": "cbc",
          "enum": [
            "cbc",
            "ecb"
          ],
          "type": "string"
        },
        "data": {
          "type": "string"
        },
        "effective_key_bits": {
          "default": 0,
          "maximum": 1024,
          "minimum": 0,
          "type": "integer"
        },
        "format": {
          "default": "base64",
          "enum": [
            "base64",
            "hex"
          ],
          "type": "string"
        },
        "iv": {
          "type": "string"
        },
        "key": {
          "type": "string"
        },
        "operation": {
          "default": "encrypt",
          "enum": [
            "encrypt",
            "decrypt"
          ],
          "type": "string"
        }
      },
      "required": [
        "data",
        "key"
      ],
      "type": "object"
    }
  }
}