Hash a text or a file (md5, sha1, sha256, sha512)
hashHash a text or a file (md5, sha1, sha256, sha512). Returns the hash of a text (JSON) or of a file (raw bytes, max 25 MB). Useful for checksums and deduplication.
Costs 1 credit per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to hash. | |
| encoding | No | How to write the result: "hex" (default) or "base64". | hex |
| algorithm | No | Hash algorithm: "md5", "sha1", "sha256" (default) or "sha512". | sha256 |