Agent Skills
› jegly/Box
› calculate-hash
calculate-hash
GitHub计算文本的加密哈希值,支持SHA-1、SHA-256、SHA-384和SHA-512算法。通过WebCrypto API离线执行,默认使用SHA-256。
Trigger Scenarios
用户请求计算文本的哈希值
需要验证数据完整性或生成唯一标识符
Install
npx skills add jegly/Box --skill calculate-hash -g -y
SKILL.md
Frontmatter
{
"name": "calculate-hash",
"description": "Calculate the cryptographic hash of a given text. Supports SHA-1, SHA-256, SHA-384, and SHA-512."
}
Calculate Hash
This skill calculates the cryptographic hash of any text, fully offline using the built-in WebCrypto API.
Supported Algorithms
- SHA-256 (default — recommended)
- SHA-512
- SHA-384
- SHA-1 (legacy, avoid for security-sensitive use)
Instructions
Call the run_js tool with:
- script name:
index.html - data: A JSON string with:
text: String — the text to hashalgorithm: String (optional) — one ofSHA-256,SHA-512,SHA-384,SHA-1. Defaults toSHA-256if not specified.
Examples
- "What is the SHA-256 hash of 'hello world'?"
- "Calculate the SHA-512 of this string: ..."
- "Hash 'password123' with SHA-1"
- "What is the hash of 'gemma'?" → use SHA-256 by default
Version History
- 7897895 Current 2026-07-24 17:00


