Api Endpoint

Hash Generator (SHA-256, HMAC)

Hash generator: compute a cryptographic digest of supplied data: SHA-256, SHA-384, SHA-512, SHA-1, SHA3-256, SHA3-512, Keccak-256, BLAKE2b-256 and BLAKE2b-512, plus HMAC with any of them. Input is UTF-8 text, base64 or hex bytes; output is hex, base64, base64url or base32. Returns the digest, the byte length of the input, and the exact algorithm identifier used.

Open interactive test console

Offering

Provider
api.duoleads.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Security
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.duoleads.com/v1/code/hash
MIME type
application/json
First seen
2026-10-16T01:50:38.788Z
Last seen
Tags
hash, SHA256, SHA-256, Crypto, hashing

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.05 USDC
Atomic price: 50000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "50000",
    "payTo": "0xCD673f7e1daD254347AEab6be0DEFe8b9C6b3A39"
  }
]

Observed health

Status
Healthy
Latest latency
67 ms
Average latency
553 ms
HTTP status
402
Last checked
Reachability
100% over 13 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "algo": {
          "type": "string",
          "description": "Digest algorithm.",
          "enum": [
            "sha256",
            "sha384",
            "sha512",
            "sha1",
            "sha3-256",
            "sha3-512",
            "keccak256",
            "blake2b-256",
            "blake2b-512"
          ],
          "maxLength": 64
        },
        "data": {
          "type": "string",
          "description": "Input data, interpreted per encoding. At most 8192 characters. An empty value hashes the empty string.",
          "maxLength": 8192
        },
        "encoding": {
          "type": "string",
          "description": "Encoding of data: utf8 (default), base64, base64url or hex.",
          "enum": [
            "utf8",
            "base64",
            "base64url",
            "hex"
          ],
          "maxLength": 64,
          "default": "utf8"
        },
        "out": {
          "type": "string",
          "description": "Digest output encoding: hex (default), base64, base64url or base32.",
          "enum": [
            "hex",
            "base64",
            "base64url",
            "base32"
          ],
          "maxLength": 64,
          "default": "hex"
        },
        "hmac_key": {
          "type": "string",
          "description": "If present, computes HMAC with this key.",
          "maxLength": 512
        },
        "hmac_key_encoding": {
          "type": "string",
          "description": "Encoding of hmac_key, as encoding.",
          "enum": [
            "utf8",
            "base64",
            "base64url",
            "hex"
          ],
          "maxLength": 64,
          "default": "utf8"
        }
      },
      "required": [
        "algo",
        "data"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "algo": {
              "description": "Digest algorithm.",
              "enum": [
                "sha256",
                "sha384",
                "sha512",
                "sha1",
                "sha3-256",
                "sha3-512",
                "keccak256",
                "blake2b-256",
                "blake2b-512"
              ],
              "maxLength": 64,
              "type": "string"
            },
            "data": {
              "description": "Input data, interpreted per encoding. At most 8192 characters. An empty value hashes the empty string.",
              "maxLength": 8192,
              "type": "string"
            },
            "encoding": {
              "default": "utf8",
              "description": "Encoding of data: utf8 (default), base64, base64url or hex.",
              "enum": [
                "utf8",
                "base64",
                "base64url",
                "hex"
              ],
              "maxLength": 64,
              "type": "string"
            },
            "hmac_key": {
              "description": "If present, computes HMAC with this key.",
              "maxLength": 512,
              "type": "string"
            },
            "hmac_key_encoding": {
              "default": "utf8",
              "description": "Encoding of hmac_key, as encoding.",
              "enum": [
                "utf8",
                "base64",
                "base64url",
                "hex"
              ],
              "maxLength": 64,
              "type": "string"
            },
            "out": {
              "default": "hex",
              "description": "Digest output encoding: hex (default), base64, base64url or base32.",
              "enum": [
                "hex",
                "base64",
                "base64url",
                "base32"
              ],
              "maxLength": 64,
              "type": "string"
            }
          },
          "required": [
            "algo",
            "data"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "data": {
              "properties": {
                "algo": {
                  "type": "string"
                },
                "bit_length": {
                  "type": "integer"
                },
                "digest": {
                  "type": "string"
                },
                "hmac": {
                  "type": "boolean"
                },
                "input_bytes": {
                  "type": "integer"
                },
                "out": {
                  "type": "string"
                }
              },
              "required": [
                "digest",
                "algo",
                "out",
                "input_bytes",
                "hmac",
                "bit_length"
              ],
              "type": "object"
            },
            "meta": {
              "properties": {
                "computed_at": {
                  "description": "RFC 3339 UTC with milliseconds",
                  "type": "string"
                },
                "deterministic": {
                  "type": "boolean"
                },
                "disclaimer": {
                  "type": "string"
                },
                "price_usd": {
                  "type": "string"
                },
                "request_id": {
                  "type": "string"
                },
                "sources": {
                  "items": {
                    "required": [
                      "id",
                      "version",
                      "published"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "request_id",
                "computed_at",
                "price_usd",
                "deterministic",
                "disclaimer"
              ],
              "type": "object"
            },
            "ok": {
              "const": true
            },
            "route": {
              "const": "/v1/code/hash"
            },
            "version": {
              "type": "string"
            }
          },
          "required": [
            "ok",
            "route",
            "version",
            "data",
            "meta"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}