Security
Criptografa ou descriptografa texto e arquivos com AES-256-GCM e exporta pacotes baseados em IV
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/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/pt/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'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/aes-encryption-tool| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| inputType | select | Sim | — |
| operation | select | Sim | — |
| textInput | textarea | Não | — |
| fileInput | fileupload necessário | Não | — |
| secretKey | text | Sim | — |
| outputEncoding | select | Sim | — |
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-aes-encryption-tool": {
"name": "aes-encryption-tool",
"description": "Criptografa ou descriptografa texto e arquivos com AES-256-GCM e exporta pacotes baseados em IV",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=aes-encryption-tool",
"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": "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"
}
}
}Dúvidas ou problemas? Contate [email protected]