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

file-hasher

# File Hasher Compute, verify, and compare file hashes. Supports all hashlib algorithms. Zero dependencies. ## Quick Start ```bash # 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: ```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 # 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: ```bash python3 scripts/file_hasher.py verify image.iso -e <expected_hash> python3 scripts/file_hasher.py verify file.tar.gz -e <hash> -a sha512 ``` Exit code 0 = match, 1 = mismatch. ### check Verify files from a checksum file (sha256sum/md5sum/BSD format): ```bash 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: ```bash 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: ```bash 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: ```bash 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: ```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

下载 Zip 包

⬇ 下载 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
返回顶部