Security
Encrypt or decrypt portable password-based file bundles with Argon2id, XChaCha20-Poly1305, and optional signatures
Call this tool from your code in three languages.
# 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/en/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'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/age-like-encrypted-file-bundle| Name | Type | Required | Description |
|---|---|---|---|
| operation | select | Yes | — |
| sourceFile | fileupload required | No | — |
| bundleFile | fileupload required | No | — |
| passphrase | text | Yes | — |
| strength | select | Yes | — |
| includeSignature | checkbox | No | — |
| signerId | text | No | — |
| signerPrivateKey | textarea | No | — |
| signerPublicKey | textarea | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-age-like-encrypted-file-bundle": {
"name": "age-like-encrypted-file-bundle",
"description": "Encrypt or decrypt portable password-based file bundles with Argon2id, XChaCha20-Poly1305, and optional signatures",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=age-like-encrypted-file-bundle",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"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"
}
}
}Questions or issues? Contact [email protected]