Hosted tool

Hash text

Live

Compute a SHA-256, SHA-1, or MD5 digest locally.

utilities.hashversion 1

Price

0.01

credits per call

Compute only: upstream charges are not included in this price.

Availability

Live

Configured and callable with a valid key.

Access

Live

Category Utilities

Input

{
  "additionalProperties": false,
  "properties": {
    "algorithm": {
      "enum": [
        "sha256",
        "sha1",
        "md5"
      ],
      "type": "string"
    },
    "text": {
      "maxLength": 65536,
      "type": "string"
    }
  },
  "required": [
    "text"
  ],
  "type": "object"
}

Result

object<{algorithm:string,digest:string}>

Default fields: algorithm digest

Limits

Synchronous deadline15 s
Maximum result65,536 bytes
Result pages1
Maximum upstream read1,048,576 bytes

Example call

Provisional: the invoke contract ships with the execution lane

curl https://haidercode.ai/v1/tools/utilities.hash/invoke \
  -H "Authorization: Bearer <HK_KEY>" \
  -H "Content-Type: application/json" \
  -H 'Idempotency-Key: hash-1' \
  -d '{"arguments":{"text":"…"},"max_credits":"0.05"}'

Bound every paid call with max_credits, and repeat the same Idempotency-Key to recover a result rather than pay twice.

utilities

Back to the list