360 Secure SkillHub
360 安全技能中心

Hash

基于 bash 脚本的命令行哈希工具,提供 md5、sha1、sha256、sha512 计算,以及 verify 校验、compare 比对、batch 目录批量哈希、check 校验和文件核验和 history 历史记录功能,要求 bash 4.0+。

bytesagain-lab
bytesagain-lab
热度 87.50
最近更新 2026-05-11 17:32:16
分类:效率依赖:代码执行 / 读写文件应用场景:数据处理 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add bytesagain-lab/hash
Metadata
name
hash
version
3.0.1
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills
license
MIT-0
tags
["hash","tool","utility"]
description
Generate MD5 and SHA checksums, verify integrity, and compare hash values. Use when computing checksums, verifying downloads, or comparing hash outputs.

hash

Hash & Checksum Tool.

Commands

md5

Compute MD5 hash

scripts/script.sh md5 <file_or_text>

sha1

Compute SHA-1 hash

scripts/script.sh sha1 <file_or_text>

sha256

Compute SHA-256 hash

scripts/script.sh sha256 <file_or_text>

sha512

Compute SHA-512 hash

scripts/script.sh sha512 <file_or_text>

verify

Verify a file against a known hash

scripts/script.sh verify <file> <expected_hash>

compare

Compare hashes of two files

scripts/script.sh compare <file1> <file2>

batch

Hash every file in a directory (default: sha256)

scripts/script.sh batch <directory> [algo]

check

Verify hashes listed in a checksum file

scripts/script.sh check <hashfile>

history

Show recent hash operations

scripts/script.sh history

Requirements

  • bash 4.0+

Powered by BytesAgain | bytesagain.com | hello@bytesagain.com