Security
Criptografa ou descriptografa pacotes portateis protegidos por frase secreta com Argon2id, XChaCha20-Poly1305 e assinaturas opcionais
Chame esta ferramenta a partir do seu código em três idiomas.
# 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/pt/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'Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.
POST https://api.elysiatools.com/pt/api/tools/age-like-encrypted-file-bundle| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| operation | select | Sim | — |
| sourceFile | fileupload necessário | Não | — |
| bundleFile | fileupload necessário | Não | — |
| passphrase | text | Sim | — |
| strength | select | Sim | — |
| includeSignature | checkbox | Não | — |
| signerId | text | Não | — |
| signerPrivateKey | textarea | Não | — |
| signerPublicKey | textarea | Não | — |
Resultado JSON
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.
Adicione este bloco à configuração do seu cliente MCP:
{
"mcpServers": {
"elysiatools-age-like-encrypted-file-bundle": {
"name": "age-like-encrypted-file-bundle",
"description": "Criptografa ou descriptografa pacotes portateis protegidos por frase secreta com Argon2id, XChaCha20-Poly1305 e assinaturas opcionais",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=age-like-encrypted-file-bundle",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Após conectar ao endpoint SSE, liste as ferramentas expostas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus 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"
}
}
}Dúvidas ou problemas? Contate [email protected]