360 Secure SkillHub
360 安全技能中心

Hashgen

HashGen 是一个命令行哈希工具,可对文本和本地文件计算 MD5、SHA1、SHA256、SHA512 摘要,一次性输出全部算法结果,并提供两个哈希值的比较以及自动识别算法的文本校验功能。实现基于 Bash 脚本与 coreutils 摘要命令,在本地完成计算。

bytesagain3
bytesagain3
热度 67.19
最近更新 2026-05-11 17:31:53
分类:安全依赖:代码执行 / 读写文件应用场景:数据处理

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add hashgen
Metadata
name
HashGen
description
Hash files and strings, verify checksums, and run integrity checks fast. Use when generating SHA hashes, verifying files, or comparing digest values.
version
3.0.0
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills
tags
["hash","md5","sha256","checksum","security","verify","integrity","crypto"]
categories
["Security","Developer Tools","Utility"]

HashGen

Quick hash generator for strings and files. Supports MD5, SHA1, SHA256, SHA512 with auto-detection, comparison, and verification.

Commands

Command Description
hashgen md5 <text> MD5 hash of text
hashgen sha1 <text> SHA1 hash of text
hashgen sha256 <text> SHA256 hash of text
hashgen sha512 <text> SHA512 hash of text
hashgen all <text> Show all hash algorithms for text
hashgen file <path> [algo] Hash a file (default: sha256)
hashgen compare <hash1> <hash2> Compare two hashes
hashgen verify <text> <hash> Verify text matches hash (auto-detects algorithm)
hashgen version Show version

Examples

hashgen md5 "hello world"       # → MD5: 5eb63bbbe01...
hashgen sha256 "my secret"      # → SHA256: 40e1b17...
hashgen all "test"              # → shows MD5, SHA1, SHA256, SHA512
hashgen file /etc/hostname      # → SHA256 of file
hashgen file /etc/hostname md5  # → MD5 of file
hashgen compare abc123 abc123   # → ✅ MATCH
hashgen verify "hello" 5d41...  # → auto-detects algo, verifies

Requirements

  • md5sum, sha1sum, sha256sum, sha512sum (standard coreutils)