hash
Generate cryptographic digests for UTF-8 strings to fingerprint content, check integrity, or deduplicate data. Outputs hex and base64 digests with byte length.
Instructions
Compute a cryptographic hash of a UTF-8 string. Returns hex and base64 digests plus the UTF-8 byte length. Supports sha256 (default), sha512, sha1, md5, and HMAC variants via hmacKey. Use for content fingerprints, deduplication and integrity checks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| algo | No | Hash algorithm (default sha256) | |
| text | Yes | Text to hash | |
| hmacKey | No | If set, compute HMAC with this key |