360 Secure SkillHub
360 安全技能中心

Sha Tool

提供 sha-tool 命令行工具,对文件或标准输入文本计算 SHA-1、SHA-256、SHA-512 哈希值,默认使用 SHA-256,可用于数据完整性与文件一致性校验。文档仅给出基本用法示例,未说明批量处理、结果比对或错误处理方式。

dinghaibin
dinghaibin
热度 30.69
最近更新 2026-05-11 17:47:10
分类:安全依赖:代码执行 / 读写文件应用场景:数据处理 / 自动化脚本

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add sha-tool
Metadata
name
sha-tool
description
Compute SHA family hash values for file integrity verification. Use for checksums, data validation, and security verification.

SHA - Secure Hash Algorithm Calculator

Calculate SHA-1, SHA-256, SHA-384, and SHA-512 hash values for files and text input. Used for verifying data integrity and file authenticity.

Usage

sha-tool [options] <algorithm> <file>

Supported Algorithms

  • 1 or sha1: 160-bit hash
  • 256 or sha256: 256-bit hash (default)
  • 512 or sha512: 512-bit hash

Examples

sha-tool 256 document.pdf
sha-tool 512 file.bin
echo "data" | sha-tool 256