Security
使用各种解密方法对Excel文件中的特定字段进行解密以恢复加密信息
用三种语言从你的代码中调用此工具。
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/excel-field-decryptor' \
-F 'file=@/path/to/excelFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/zh/api/tools/excel-field-decryptor' \
-F 'excelFile=/path/to/file.ext' \
-F 'decryptionMethod=base64' \
-F 'selectedFields=逗号分隔的字段名(例如:邮箱,电话,身份证)。留空则解密所有字段。' \
-F 'decryptionKey=输入解密密钥(AES解密必需)' \
-F 'caesarShift=3' \
-F 'worksheetIndex=0' \
-F 'hasHeader=true' \
-F 'outputFormat=excel' \
-F 'decryptedOnly=false'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/api/tools/excel-field-decryptor| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| excelFile | file需先上传 | 是 | — |
| decryptionMethod | select | 是 | — |
| selectedFields | text | 否 | 指定要解密的Excel列。如果留空,默认将解密所有字段。 |
| decryptionKey | text | 否 | 仅AES解密方法需要。使用与加密时相同的密钥。 |
| caesarShift | number | 否 | Caesar密码解密的移位位数(1-25) |
| worksheetIndex | number | 否 | Index of worksheet to process (0 for first worksheet, 1 for second, etc.) |
| hasHeader | checkbox | 否 | 将第一行作为列标题 |
| outputFormat | select | 是 | — |
| decryptedOnly | checkbox | 否 | 跳过详细分析,仅输出解密后的数据 |
文件结果
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-excel-field-decryptor": {
"name": "excel-field-decryptor",
"description": "使用各种解密方法对Excel文件中的特定字段进行解密以恢复加密信息",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=excel-field-decryptor",
"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": "excel-field-decryptor",
"arguments": {
"excelFile": "https://example.com/file.ext",
"decryptionMethod": "base64",
"selectedFields": "逗号分隔的字段名(例如:邮箱,电话,身份证)。留空则解密所有字段。",
"decryptionKey": "输入解密密钥(AES解密必需)",
"caesarShift": "3",
"worksheetIndex": "0",
"hasHeader": true,
"outputFormat": "excel",
"decryptedOnly": false
}
}
}有问题或反馈?请联系 [email protected]