# GET /hash

Hash text with SHA-1/256/384/512.

Free, zero-auth JSON API served by **FreeForAgents**. No API key, no signup. All responses include `ok`, the payload fields shown below, and a `docs` URL. CORS is fully open (`Access-Control-Allow-Origin: *`).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `text` | string | yes | The text to hash. |
| `algo` | string | no | One of sha-1, sha-256, sha-384, sha-512 (default sha-256). |

## Example request

```bash
curl -s "https://freeforagents.dev/hash?text=hello&algo=sha-256"
```

## Example response

```json
{
  "ok": true,
  "docs": "https://freeforagents.dev/docs/hash.md",
  "algo": "sha-256",
  "text": "hello",
  "digest": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
}
```

## See also

- [`/ip`](https://freeforagents.dev/docs/ip.md) — Look up your IP address and geolocation.
- [`/uuid`](https://freeforagents.dev/docs/uuid.md) — Generate RFC 4122 version 4 UUIDs.
- [`/ulid`](https://freeforagents.dev/docs/ulid.md) — Generate ULIDs (sortable unique identifiers).
- [`/base64`](https://freeforagents.dev/docs/base64.md) — Encode or decode Base64 strings.
- [`/convert`](https://freeforagents.dev/docs/convert.md) — Convert between units (length, mass, volume, area, data, speed, time, temperature).
- [`/time`](https://freeforagents.dev/docs/time.md) — Current time in any timezone.
- [`/timestamp`](https://freeforagents.dev/docs/timestamp.md) — Current Unix timestamp.
- [`/random`](https://freeforagents.dev/docs/random.md) — Cryptographically secure random integers.
- [`/dice`](https://freeforagents.dev/docs/dice.md) — Roll dice.
- [`/password`](https://freeforagents.dev/docs/password.md) — Generate strong random passwords.
- [`/lorem`](https://freeforagents.dev/docs/lorem.md) — Lorem ipsum placeholder text.
- [`/emoji`](https://freeforagents.dev/docs/emoji.md) — Random emoji.
- [`/joke`](https://freeforagents.dev/docs/joke.md) — Random clean programming joke.
- [`/fact`](https://freeforagents.dev/docs/fact.md) — Random fun fact.
- [`/quote`](https://freeforagents.dev/docs/quote.md) — Random inspirational quote.
- [`/holidays`](https://freeforagents.dev/docs/holidays.md) — Public holidays by country and year.
- [`/fx`](https://freeforagents.dev/docs/fx.md) — Foreign exchange rates (daily, no key).
- [`/headers`](https://freeforagents.dev/docs/headers.md) — Echo your request headers.
- [`/json`](https://freeforagents.dev/docs/json.md) — Fetch any URL and get parsed JSON back.
