Security
Cifra o descifra bundles portables protegidos por contrasena con Argon2id, XChaCha20-Poly1305 y firmas opcionales
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/age-like-encrypted-file-bundle' \
-F 'file=@/path/to/sourceFile.ext'
curl -X POST 'https://api.elysiatools.com/upload/age-like-encrypted-file-bundle' \
-F 'file=@/path/to/bundleFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/es/api/tools/age-like-encrypted-file-bundle' \
-F 'operation=encrypt' \
-F 'sourceFile=/public/samples/mp3/waterfall.mp3' \
-F 'bundleFile=/path/to/file.ext' \
-F 'passphrase=correct horse battery staple' \
-F 'strength=moderate' \
-F 'includeSignature=false' \
-F 'signerId=Optional signer label, e.g. ops-key-1' \
-F 'signerPrivateKey=Optional base64 Ed25519 secret key. Leave blank to auto-generate when signing.' \
-F 'signerPublicKey=Optional base64 Ed25519 public key for signature verification during decrypt'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/age-like-encrypted-file-bundle| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| operation | select | Sí | — |
| sourceFile | filesubida requerida | No | — |
| bundleFile | filesubida requerida | No | — |
| passphrase | text | Sí | — |
| strength | select | Sí | — |
| includeSignature | checkbox | No | — |
| signerId | text | No | — |
| signerPrivateKey | textarea | No | — |
| signerPublicKey | textarea | No | — |
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-age-like-encrypted-file-bundle": {
"name": "age-like-encrypted-file-bundle",
"description": "Cifra o descifra bundles portables protegidos por contrasena con Argon2id, XChaCha20-Poly1305 y firmas opcionales",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=age-like-encrypted-file-bundle",
"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": "age-like-encrypted-file-bundle",
"arguments": {
"operation": "encrypt",
"sourceFile": "/public/samples/mp3/waterfall.mp3",
"bundleFile": "https://example.com/file.ext",
"passphrase": "correct horse battery staple",
"strength": "moderate",
"includeSignature": false,
"signerId": "Optional signer label, e.g. ops-key-1",
"signerPrivateKey": "Optional base64 Ed25519 secret key. Leave blank to auto-generate when signing.",
"signerPublicKey": "Optional base64 Ed25519 public key for signature verification during decrypt"
}
}
}¿Dudas o problemas? Contacta con [email protected]