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/zh/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'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/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 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 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 端点后,列出已开放的工具:
{
"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]