# Hash Generator API

> Hash Generator computes cryptographic hashes for any text string across algorithms such as MD5, SHA-256, SHA-512, and BLAKE2. It outputs digests for single or multiple algorithms in one request.

**Endpoint:** `GET https://api.apiverve.com/v1/hashgenerator`  
**Category:** Security  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/hashgenerator

## Overview

A hash API you can call from any backend, from an MD5 hash generator for checksums to SHA-256 and SHA-512 for integrity checks. Hash Generator works by applying cryptographic hash functions to input text and returning the resulting hash digests. Supports multiple algorithms simultaneously and provides hash length and format details.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/hashgenerator?text=Hello%20World&algorithms=sha256%2Cmd5" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `text` | string | Yes | Text to hash |
| `algorithms` | string | No | Comma-separated list of algorithms or 'all'. default all. One of: all, md5, sha1, sha256, sha384, sha512, blake2b512, blake2s256 |

## Response fields

- `input_text` — string · The original text that was hashed
- `input_length` — number · Character count of the input text
- `algorithms_used` — array · List of hash algorithms applied to input
- `hashes` — object · Object mapping algorithm names to their hash values
  - `hashes.sha256` — string
  - `hashes.md5` — string
  - `hash_details.0.algorithm` — string · Name of the hash algorithm used · (premium)
  - `hash_details.0.hash` — string · Hash value in lowercase hexadecimal format · (premium)
  - `hash_details.0.length` — number · Byte length of the hash output · (premium)
  - `hash_details.0.uppercase` — string · Hash value converted to uppercase format · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "input_text": "Hello World",
    "input_length": 11,
    "algorithms_used": [
      "sha256",
      "md5"
    ],
    "hashes": {
      "sha256": "a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e",
      "md5": "b10a8db164e0754105b7a99be72e3fe5"
    },
    "hash_details": [
      {
        "algorithm": "sha256",
        "hash": "a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e",
        "length": 64,
        "uppercase": "A591A6D40BF420404A011733CFB7B190D62C65BF0BCDA32B57B277D9AD9F146E"
      },
      {
        "algorithm": "md5",
        "hash": "b10a8db164e0754105b7a99be72e3fe5",
        "length": 32,
        "uppercase": "B10A8DB164E0754105B7A99BE72E3FE5"
      }
    ]
  }
}
```

## Use cases

- **Data Integrity** — Generate checksums to verify file and data integrity during transfers
- **Security Applications** — Create hash values for password storage and cryptographic operations
- **Verification** — Generate hashes for digital signatures and content verification systems
- **Development** — Test hash generation and compare hash outputs across different algorithms

## SDKs

- **npm** — `npm install @apiverve/hashgenerator` (https://www.npmjs.com/package/@apiverve/hashgenerator)
- **PyPI** — `pip install apiverve-hashgenerator` (https://pypi.org/project/apiverve-hashgenerator/)
- **NuGet** — `dotnet add package APIVerve.API.HashGenerator` (https://www.nuget.org/packages/APIVerve.API.HashGenerator)
- **Source** — https://github.com/apiverve/hashgenerator-api

## More

- Full reference: https://docs.apiverve.com/ref/hashgenerator
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
