---
title: "Hash Generator"
method: POST
path: "/api/v1/tools/hash-generator"
tags: ["tools"]
---

# Hash Generator

`POST /api/v1/tools/hash-generator`

## Request

- Base URL: `https://toolforte.com`
- URL: `https://toolforte.com/api/v1/tools/hash-generator`
- Auth: HTTP bearer

Hash a text with SHA-1, SHA-256, SHA-384 or SHA-512 and return the hex digest, or all four at once. Text is hashed as UTF-8. No MD5: it is broken and Web Crypto does not offer it.

## Request body

- object
  - `text` string
  - `algorithm` string

## Response `200`

Successful result

- object
  - `ok` boolean
  - `data` object
    - `algorithms` string[]
    - `hashes` object
      - `SHA-256` string
    - `byteLength` integer

## Other responses

- `400`: Missing or invalid request fields
- `401`: Invalid or missing API key
- `429`: Monthly plan limit reached

---

[API](https://skmtc.dev/toolforte/apis/toolforte-api.md) · [All operations](https://skmtc.dev/toolforte/apis/toolforte-api/llms.txt) · [OpenAPI document](https://skmtc.dev/toolforte/apis/toolforte-api/revisions/4d814d484dfc?raw)
