Security
Cifra o descifra texto y archivos con AES-256-GCM y exporta paquetes basados en IV
Llama a esta herramienta desde tu código en tres lenguajes.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/aes-encryption-tool' \
-F 'file=@/path/to/fileInput.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/es/api/tools/aes-encryption-tool' \
-F 'inputType=text' \
-F 'operation=decrypt' \
-F 'textInput={"algorithm":"aes-256-gcm","encoding":"base64","salt":"c2FsdC1mb3ItYWVzLXRvb2w=","iv":"AQIDBAUGBwgJCgsM","authTag":"1VBqj1TTlms/dNQoH4WMGA==","ciphertext":"h4VrXvk="}' \
-F 'fileInput=/path/to/file.ext' \
-F 'secretKey=test-key-123' \
-F 'outputEncoding=base64'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/aes-encryption-tool| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| inputType | select | Sí | — |
| operation | select | Sí | — |
| textInput | textarea | No | — |
| fileInput | filesubida requerida | No | — |
| secretKey | text | Sí | — |
| outputEncoding | select | Sí | — |
Resultado JSON
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-aes-encryption-tool": {
"name": "aes-encryption-tool",
"description": "Cifra o descifra texto y archivos con AES-256-GCM y exporta paquetes basados en IV",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=aes-encryption-tool",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "aes-encryption-tool",
"arguments": {
"inputType": "text",
"operation": "decrypt",
"textInput": "{\"algorithm\":\"aes-256-gcm\",\"encoding\":\"base64\",\"salt\":\"c2FsdC1mb3ItYWVzLXRvb2w=\",\"iv\":\"AQIDBAUGBwgJCgsM\",\"authTag\":\"1VBqj1TTlms/dNQoH4WMGA==\",\"ciphertext\":\"h4VrXvk=\"}",
"fileInput": "https://example.com/file.ext",
"secretKey": "test-key-123",
"outputEncoding": "base64"
}
}
}¿Dudas o problemas? Contacta con [email protected]