{
  "slug": "rc4-cipher",
  "name": "gizza-ai/rc4-cipher",
  "version": "0.1.0",
  "title": "RC4 Cipher — Encrypt/decrypt with RC4 (with drop-N) — gizza.ai",
  "description": "Encrypt or decrypt text with the RC4 stream cipher — optional drop-N to skip weak keystream bytes, hex or base64 output — free and in your browser.",
  "tags": [
    "rc4",
    "rc4 encrypt",
    "rc4 decrypt",
    "rc4-drop",
    "stream cipher",
    "arcfour",
    "cipher"
  ],
  "category": "security",
  "urls": {
    "page": "https://gizza.ai/tools/rc4-cipher/",
    "markdown": "https://gizza.ai/tools/rc4-cipher/index.md",
    "descriptor": "https://gizza.ai/tools/rc4-cipher/tool.json",
    "deep_link_example": "https://gizza.ai/tools/rc4-cipher/?data=Text%20to%20encrypt%E2%80%A6&operation=encrypt&key=passphrase%2C%20or%20encoded%20key&key_format=text&drop=0&format=hex"
  },
  "cli": "gizza tool rc4-cipher \"Text to encrypt…\" 'key=passphrase, or encoded key'",
  "tool": {
    "description": "Encrypt or decrypt data with the RC4 stream cipher, with an optional drop-N (RC4-drop[n]) to skip the weak initial keystream bytes. operation = encrypt (default) or decrypt — RC4 is symmetric. key is 1–256 bytes, read as a UTF-8 passphrase (key_format=text, default) or decoded from hex/base64 (key_format=encoded). drop discards the first n keystream bytes; it must match on both sides. The ciphertext (and an encoded key) use format = hex (default) or base64; the plaintext is UTF-8. WARNING: RC4 is cryptographically broken — use for interop, CTFs, and legacy systems only.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "data": {
          "type": "string"
        },
        "drop": {
          "default": 0,
          "minimum": 0,
          "type": "integer"
        },
        "format": {
          "default": "hex",
          "enum": [
            "hex",
            "base64"
          ],
          "type": "string"
        },
        "key": {
          "type": "string"
        },
        "key_format": {
          "default": "text",
          "enum": [
            "text",
            "encoded"
          ],
          "type": "string"
        },
        "operation": {
          "default": "encrypt",
          "enum": [
            "encrypt",
            "decrypt"
          ],
          "type": "string"
        }
      },
      "required": [
        "data",
        "key"
      ],
      "type": "object"
    }
  }
}