{
  "name": "hash",
  "group": "crypto",
  "summary": "Hash or HMAC-sign text with MD5, SHA-1, SHA-256/384/512 or CRC32.",
  "description": "Computes cryptographic digests and HMAC signatures. Returns hex and base64 at once, so a webhook signature can be compared in whichever encoding the provider uses. MD5 and CRC32 are included for checksums and legacy fixtures; they are not secure for authentication.",
  "keywords": [
    "sha256",
    "md5",
    "hmac",
    "checksum",
    "digest",
    "webhook signature",
    "crc32",
    "hash string"
  ],
  "endpoint": "https://fluentedi.com/v1/hash",
  "mcp_name": "hash",
  "makes_network_request": false,
  "parameters": {
    "type": "object",
    "properties": {
      "input": {
        "description": "Text to hash.",
        "type": "string",
        "maxLength": 200000,
        "examples": [
          "hello world"
        ]
      },
      "algorithms": {
        "description": "Any of: md5, sha1, sha256, sha384, sha512, crc32.",
        "type": "array",
        "default": [
          "sha256"
        ],
        "items": {
          "type": "string"
        },
        "examples": [
          [
            "sha256",
            "md5"
          ]
        ]
      },
      "hmac_key": {
        "description": "When set, computes HMAC-<algorithm> with this key instead of a plain digest. Not supported for md5/crc32.",
        "type": "string",
        "default": "",
        "maxLength": 4096
      },
      "input_encoding": {
        "description": "How to read `input` into bytes.",
        "type": "string",
        "enum": [
          "utf8",
          "hex",
          "base64"
        ],
        "default": "utf8"
      }
    },
    "required": [
      "input"
    ],
    "additionalProperties": false
  },
  "examples": [
    {
      "description": "SHA-256 of a string",
      "url": "https://fluentedi.com/v1/hash?input=hello%20world",
      "args": {
        "input": "hello world"
      }
    },
    {
      "description": "Verify a webhook signature",
      "url": "https://fluentedi.com/v1/hash?input=%7B%22event%22%3A%22ping%22%7D&algorithms=%5B%22sha256%22%5D&hmac_key=whsec_test",
      "args": {
        "input": "{\"event\":\"ping\"}",
        "algorithms": [
          "sha256"
        ],
        "hmac_key": "whsec_test"
      }
    },
    {
      "description": "Several digests at once",
      "url": "https://fluentedi.com/v1/hash?input=hello%20world&algorithms=%5B%22md5%22%2C%22sha1%22%2C%22sha256%22%2C%22crc32%22%5D",
      "args": {
        "input": "hello world",
        "algorithms": [
          "md5",
          "sha1",
          "sha256",
          "crc32"
        ]
      }
    }
  ],
  "suggestion": null
}