Security
Шифрует и расшифровывает переносимые парольные файловые пакеты с Argon2id, XChaCha20-Poly1305 и необязательной подписью
Вызовите этот инструмент из своего кода на трёх языках.
# 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/ru/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'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/age-like-encrypted-file-bundle| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| operation | select | Да | — |
| sourceFile | fileнужна загрузка | Нет | — |
| bundleFile | fileнужна загрузка | Нет | — |
| passphrase | text | Да | — |
| strength | select | Да | — |
| includeSignature | checkbox | Нет | — |
| signerId | text | Нет | — |
| signerPrivateKey | textarea | Нет | — |
| signerPublicKey | textarea | Нет | — |
JSON-результат
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-age-like-encrypted-file-bundle": {
"name": "age-like-encrypted-file-bundle",
"description": "Шифрует и расшифровывает переносимые парольные файловые пакеты с Argon2id, XChaCha20-Poly1305 и необязательной подписью",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=age-like-encrypted-file-bundle",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}После подключения к SSE-endpoint выведите список доступных инструментов:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Вызовите инструмент по его id; аргументы формируются из его параметров:
{
"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"
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]