← 返回 Skills 市场
johnnywang2001

File Hasher

作者 John Wang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
208
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install file-hasher
功能描述
Compute, verify, and compare file hashes using MD5, SHA-1, SHA-256, SHA-512, and more. Use when checking file integrity, verifying downloads against expected...
使用说明 (SKILL.md)

File Hasher

Compute, verify, and compare file hashes. Supports all hashlib algorithms. Zero dependencies.

Quick Start

# Hash a file (SHA-256)
python3 scripts/file_hasher.py hash myfile.txt

# Verify a download
python3 scripts/file_hasher.py verify image.iso -e abc123def456...

# Compare two files
python3 scripts/file_hasher.py compare file1.txt file2.txt

Commands

hash

Compute file hash with one or more algorithms:

python3 scripts/file_hasher.py hash file.txt                        # SHA-256
python3 scripts/file_hasher.py hash file.txt -a md5                 # MD5
python3 scripts/file_hasher.py hash file.txt -a md5,sha1,sha256     # Multiple
python3 scripts/file_hasher.py hash *.py --bsd                      # BSD format
python3 scripts/file_hasher.py hash data.bin --json                 # JSON output

verify

Check a file against an expected hash:

python3 scripts/file_hasher.py verify image.iso -e \x3Cexpected_hash>
python3 scripts/file_hasher.py verify file.tar.gz -e \x3Chash> -a sha512

Exit code 0 = match, 1 = mismatch.

check

Verify files from a checksum file (sha256sum/md5sum/BSD format):

python3 scripts/file_hasher.py check SHA256SUMS
python3 scripts/file_hasher.py check checksums.txt -a md5

Auto-detects algorithm from hash length and BSD format headers.

compare

Compare two files by hash:

python3 scripts/file_hasher.py compare original.bin copy.bin
python3 scripts/file_hasher.py compare a.txt b.txt -a md5

directory

Hash all files in a directory:

python3 scripts/file_hasher.py directory ./src                  # Top level
python3 scripts/file_hasher.py directory ./project -r           # Recursive
python3 scripts/file_hasher.py directory ./dist -r --bsd -a md5 # BSD + MD5

string

Hash a text string directly:

python3 scripts/file_hasher.py string "hello world"
python3 scripts/file_hasher.py string "password" -a md5,sha256,sha512

algorithms

List all available hash algorithms:

python3 scripts/file_hasher.py algorithms
安全使用建议
This skill appears coherent and self-contained: it computes and verifies hashes of files you explicitly provide and does not request credentials or network access. Before installing or running it, you may (1) review the full, untruncated script to confirm there are no unexpected network calls or subprocess.exec usage, (2) run it in a limited environment (or sandbox) the first time, and (3) verify the script path (scripts/file_hasher.py) is what you expect. If you need absolute assurance, run a static scan of the full file and/or execute it on non-sensitive sample files first.
功能分析
Type: OpenClaw Skill Name: file-hasher Version: 1.0.0 The skill bundle is a standard file hashing utility that uses Python's built-in hashlib library to compute, verify, and compare file checksums. The code in scripts/file_hasher.py is well-structured, lacks external dependencies, and contains no evidence of malicious intent, data exfiltration, or prompt injection.
能力评估
Purpose & Capability
Name/description (file hashing, verify/compare checksums) matches the included instructions and the script. The required capabilities (reading files, walking directories, computing hashes) are appropriate and proportional.
Instruction Scope
SKILL.md instructs running the included Python script with file paths and options; the script's operations are limited to local filesystem reads and hashing. It does not read unrelated configuration, environment variables, or contact external endpoints in the visible code.
Install Mechanism
No install spec — instruction-only with an included script. This is low-risk: nothing is downloaded or installed automatically.
Credentials
The skill requires no environment variables, credentials, or config paths. The code does not access os.environ or other secrets in the visible portion.
Persistence & Privilege
Skill is not marked always:true, does not request persistent elevated privileges, and does not modify other skills or system-wide config (based on the provided files).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install file-hasher
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /file-hasher 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of file-hasher. - Compute, verify, and compare file hashes with support for MD5, SHA-1, SHA-256, SHA-512, and more. - Supports hashing directories (with recursion), files, and strings. - Provides multiple output formats: BSD, standard, JSON. - Includes commands for direct hash generation, verification, comparison, and checksum file validation. - Lists all available hashlib-supported algorithms. - No external dependencies required.
元数据
Slug file-hasher
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

File Hasher 是什么?

Compute, verify, and compare file hashes using MD5, SHA-1, SHA-256, SHA-512, and more. Use when checking file integrity, verifying downloads against expected... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 208 次。

如何安装 File Hasher?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install file-hasher」即可一键安装,无需额外配置。

File Hasher 是免费的吗?

是的,File Hasher 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

File Hasher 支持哪些平台?

File Hasher 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 File Hasher?

由 John Wang(@johnnywang2001)开发并维护,当前版本 v1.0.0。

💬 留言讨论