xor_cipher
Encrypt or decrypt text with XOR cipher using a provided key. Optionally treat input as hex for binary data processing.
Instructions
XOR encrypt/decrypt text with a key.
Args: text: Text or hex string to process key: XOR key input_hex: If True, treat input as hex string
Returns: JSON with XOR result in multiple formats
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>",
"key": "<key>"
},
"name": "xor_cipher"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| key | Yes | ||
| input_hex | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |