fernet_encrypt
Encrypt a plain text string with a Base64-encoded Fernet key, returning Base64-encoded ciphertext.
Instructions
Encrypt data using Fernet symmetric encryption.
Args: key: Base64-encoded Fernet key. data: Plain text string to encrypt.
Returns: Base64-encoded ciphertext.
Example: >>> key = generate_symmetric_key() >>> ciphertext = fernet_encrypt(key, "Hello, World!") >>> len(ciphertext) > 0 True
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": {
"key": "<key>",
"data": "<data>"
},
"name": "fernet_encrypt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| data | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |