Overview
- Skill Key
- endcy/encrypted-file-reader
- Author
- endcy
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/endcy/encrypted-file-reader
- Latest Commit SHA
- 9dcc77991f331ae5c643f9a7f2b33b01f4cd7752
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Encrypted File Reader 技能。 若已安装,则直接安装 Encrypted File Reader 技能。
# encrypted-file-reader 读取本地加密/受保护的文件内容,支持企业安全策略环境。 ## 功能 - 读取文本文件(.txt, .md, .java, .py, .js 等) - 读取 Word 文档(.docx) - 读取 Excel 表格(.xlsx) - 自动处理特殊编码文件的解码问题 - 支持企业安全策略环境下的文件读取 - 适用于通过授权应用程序可访问的加密文件 ## 使用方法 ### 通过 Python 脚本调用 ```bash python D:\ai\skills\encrypted-file-reader\read_file.py <文件路径> ``` ### 示例 ```bash # 读取文本文件 python D:\ai\skills\encrypted-file-reader\read_file.py E:\data\test.txt # 读取 Word 文档 python D:\ai\skills\encrypted-file-reader\read_file.py E:\data\test.docx # 读取 Excel 表格 python D:\ai\skills\encrypted-file-reader\read_file.py E:\data\test.xlsx ``` ## 支持的扩展名 - **文本类**: .txt, .md, .markdown, .rst, .log, .csv, .tsv - **代码类**: .java, .py, .js, .ts, .jsx, .tsx, .c, .cpp, .h, .cs, .go, .rs, .rb, .php, .vue - **配置类**: .json, .xml, .yaml, .yml, .toml, .ini, .cfg, .properties, .gradle, .config, .env - **样式类**: .html, .htm, .css, .scss, .sass, .less - **脚本类**: .sh, .bash, .bat, .cmd, .ps1, .sql - **Word 文档**: .docx - **Excel 表格**: .xlsx ## 输出 - 成功:输出文件内容(UTF-8 编码) - 失败:输出错误信息 ## 技术原理 - **文本文件**: 直接读取二进制后用 UTF-8 解码 - **Office 文件**: 使用 zipfile 解压后提取 XML 中的文本内容 - **加密/受保护文件**: 通过正确的字节处理方式处理通过授权应用程序可访问的文件内容 ## 依赖 - Python 3.x - 标准库(zipfile, re, sys, os) ## 注意事项 - 本工具仅读取用户有权限访问的本地文件 - 不支持绕过合法的文件访问控制 - 适用于企业环境中授权的文件读取场景 - 文件需要能通过系统授权的应用程序(如 Word、Excel)正常打开 ## 法律说明 - 本工具仅用于读取用户有合法访问权限的本地文件 - 不支持绕过任何合法的文件访问控制或权限管理 - 用户应确保使用本工具符合所在组织的政策和法律法规 - 本工具通过正确的编码处理方式读取文件,不涉及破解或绕过加密
# encrypted-file-reader 读取本地加密/受保护的文件内容,支持企业安全策略环境。 ## 功能 - 读取文本文件(.txt, .md, .java, .py, .js 等) - 读取 Word 文档(.docx) - 读取 Excel 表格(.xlsx) - 自动处理特殊编码文件的解码问题 - 支持企业安全策略环境下的文件读取 - 适用于通过授权应用程序可访问的加密文件 ## 安装 Skill 已安装到:`D:\ai\skills\encrypted-file-reader` ## 使用方法 ### 命令行调用 ```bash python D:\ai\skills\encrypted-file-reader\read_file.py <文件路径> ``` ### 示例 ```bash # 读取文本文件 python D:\ai\skills\encrypted-file-reader\read_file.py E:\data\test.txt # 读取 Word 文档 python D:\ai\skills\encrypted-file-reader\read_file.py E:\data\test.docx # 读取 Excel 表格 python D:\ai\skills\encrypted-file-reader\read_file.py E:\data\test.xlsx # 读取代码文件 python D:\ai\skills\encrypted-file-reader\read_file.py E:\project\src\Main.java ``` ## 支持的扩展名 | 类型 | 扩展名 | |------|--------| | **文本类** | .txt, .md, .markdown, .log, .csv, .tsv | | **代码类** | .java, .py, .js, .ts, .jsx, .tsx, .c, .cpp, .h, .cs, .go, .rs, .rb, .php, .vue, .svelte | | **配置类** | .json, .json5, .xml, .yaml, .yml, .toml, .ini, .cfg, .conf, .properties, .gradle, .config, .env | | **Web 前端** | .html, .htm, .css, .scss, .sass, .less, .styl | | **脚本类** | .sh, .bash, .bat, .cmd, .ps1, .sql, .graphql | | **Git 相关** | .gitignore, .gitattributes, .gitmodules, .editorconfig | | **构建配置** | .dockerfile, .dockerignore, .makefile, .cmake | | **其他** | .diff, .patch, .readme, .license, .changelog | | **Word 文档** | .docx | | **Excel 表格** | .xlsx | ## 输出 - **成功**: 输出文件内容(UTF-8 编码)到 stdout - **失败**: 输出错误信息到 stderr,退出码为 1 ## 技术原理 - **文本文件**: 直接读取二进制后用 UTF-8 解码 - **Office 文件 (.docx/.xlsx)**: 使用 zipfile 解压后提取 XML 中的文本字节 - **加密/受保护文件**: 通过正确的字节处理方式处理通过授权应用程序可访问的文件内容 ## 依赖 - Python 3.x - 标准库(zipfile, re, sys, os)- 无需额外安装 ## 在 AI 智能体中使用 ```python import sub...
openstockdata
OpenClaw Skill for stock data analysis
capt-marbles
Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discoverability and citation.
capgoblin
Access unsecured credit lines for AI agents on the Arc Network using the Credex Protocol. Use for borrowing USDC against reputation, repaying debt to grow credit limits, providing liquidity as an LP, or managing cross-chain USDC via Circle Bridge. Triggers on "borrow from credex", "repay debt", "deposit to pool", "check credit status", "provide liquidity", or any credit/lending task on Arc.
capt-marbles
Control PhantomBuster automation agents via API. List agents, launch automations, get output/results, check status, and abort running agents. Use when the user needs to run LinkedIn scraping, Twitter automation, lead generation phantoms, or any PhantomBuster workflow.
camelsprout
DuckDB CLI specialist for SQL analysis, data processing and file conversion. Use for SQL queries, CSV/Parquet/JSON analysis, database queries, or data conversion. Triggers on "duckdb", "sql", "query", "data analysis", "parquet", "convert data".
camohiddendj
DuckDuckGo HTML search scraper CLI with JSON, CSV, OpenSearch, markdown, and compact outputs.