闲社服务运行正常AI智能体自动化平台
f

文件哈希器

技能标识: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 checksums, comparing files for equality, generating checksums for directories, hashing strings, or validating checksum files (sha256sum/md5sum format). Supports BSD and standard output formats, JSON output, multi-algorithm hashing, and recursive directory scanning. No external dependencies.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

文件哈希器

文件哈希工具

计算、验证和比较文件哈希值。支持所有hashlib算法。零依赖。

快速开始

bash

计算文件哈希值(SHA-256)


python3 scripts/file_hasher.py hash myfile.txt

验证下载文件

python3 scripts/file_hasher.py verify image.iso -e abc123def456...

比较两个文件

python3 scripts/file_hasher.py compare file1.txt file2.txt

命令

hash

使用一个或多个算法计算文件哈希值: bash 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 # 多种算法 python3 scripts/file_hasher.py hash *.py --bsd # BSD格式 python3 scripts/file_hasher.py hash data.bin --json # JSON输出

verify

检查文件是否与预期哈希值匹配: bash python3 scripts/filehasher.py verify image.iso -e hash> python3 scripts/file_hasher.py verify file.tar.gz -e -a sha512

退出码0表示匹配,1表示不匹配。

check

从校验和文件(sha256sum/md5sum/BSD格式)验证文件: bash python3 scripts/file_hasher.py check SHA256SUMS python3 scripts/file_hasher.py check checksums.txt -a md5

自动根据哈希长度和BSD格式头检测算法。

compare

通过哈希值比较两个文件: bash python3 scripts/file_hasher.py compare original.bin copy.bin python3 scripts/file_hasher.py compare a.txt b.txt -a md5

directory

计算目录中所有文件的哈希值: bash python3 scripts/file_hasher.py directory ./src # 顶层目录 python3 scripts/file_hasher.py directory ./project -r # 递归遍历 python3 scripts/file_hasher.py directory ./dist -r --bsd -a md5 # BSD格式 + MD5

string

直接计算文本字符串的哈希值: bash python3 scripts/file_hasher.py string hello world python3 scripts/file_hasher.py string password -a md5,sha256,sha512

algorithms

列出所有可用的哈希算法: bash python3 scripts/file_hasher.py algorithms

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 file-hasher-1776378361 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 file-hasher-1776378361 技能

通过命令行安装

skillhub install file-hasher-1776378361

下载

⬇ 下载 file-hasher v1.0.0(免费)

文件大小: 4.38 KB | 发布时间: 2026-4-17 14:50

v1.0.0 最新 2026-4-17 14:50
- 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.
返回顶部