360 Secure SkillHub
360 安全技能中心

Hashcheck

基于 Python 脚本的哈希工具,可对文件或文本计算 MD5、SHA-1、SHA-256、SHA-512、BLAKE2b 哈希,支持按预期值校验下载文件、比较两个文件是否一致,以及一次性显示全部算法结果,支持 JSON 输出,声明零依赖。

rogue-agent1
rogue-agent1
热度 43.03
最近更新 2026-05-11 17:37:31
分类:效率依赖:代码执行 / 读写文件应用场景:数据处理 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add hashcheck
Metadata
name
hashcheck
description
Calculate, verify, and compare file hashes using MD5, SHA-1, SHA-256, SHA-512, and BLAKE2b. Use when asked to checksum a file, verify a download hash, compare files for equality, or hash a text string. Supports all common algorithms, JSON output, and multi-algorithm display. Zero dependencies.

hashcheck 🔒

File hash calculator, verifier, and comparator.

Commands

# Calculate SHA-256 (default)
python3 scripts/hashcheck.py hash file.zip

# Specific algorithm
python3 scripts/hashcheck.py hash -a md5 file.iso

# Verify against expected hash
python3 scripts/hashcheck.py verify file.zip abc123def456...

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

# Hash a text string
python3 scripts/hashcheck.py text "hello world"

# Show all algorithms at once
python3 scripts/hashcheck.py all file.bin

Algorithms

MD5, SHA-1, SHA-256, SHA-512, BLAKE2b