返回顶部
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
安全检测
已通过
199
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

file-hasher

文件哈希工具

计算、验证和比较文件哈希值。支持所有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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部