---
title: "Compute cryptographic hashes of a text input"
method: POST
path: "/hash.php"
tags: ["crypto"]
---

# Compute cryptographic hashes of a text input

`POST /hash.php`

## Request

- Base URL: `https://mate.tools/api/v1`
- URL: `https://mate.tools/api/v1/hash.php`
- Auth: none declared

Computes one or more hashes of the supplied text. Defaults to MD5, SHA-1, SHA-256, SHA-384, SHA-512, CRC32, SHA3-256 and SHA3-512. Provide `algorithms` to compute a different subset.

## Request body

- object
  - `text` string, required
  - `algorithms` string[]

## Response `200`

Success

## Other responses

- `400`: Malformed request
- `413`: Request body or text exceeds 1 MB
- `429`: Rate limit exceeded (60/min, 600/hour per IP). Includes Retry-After header.

---

[API](https://skmtc.dev/mate/apis/mate-tools-api.md) · [All operations](https://skmtc.dev/mate/apis/mate-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mate/apis/mate-tools-api/revisions/874670b78962?raw)
