What it does
Call this tool (id: hash_digest) to compute a hex digest of text or base64 bytes: MD5 (interop only), SHA-1 (legacy), SHA-256 (preferred). Example: "SHA-256 hex digest of this string" → algorithm=sha256.
Example use cases
- Content-addressed caching keys in agent pipelines.
- Integrity checks before upload or after download.
- Comparing payloads without storing the original in logs.
How it works in Toolporten
Add hash_digest with algorithm=sha256 (or md5 / sha1 for legacy interop) and hmac_sha256 when you need keyed MACs. Formerly hash_md5, hash_sha1, and hash_sha256 (search only; not an invoke alias).
MCP call example
{
"name": "hash_digest",
"arguments": {
"algorithm": "sha256",
"text": "hello toolporten"
}
}