# Hash-generator

> Beregn MD5-, SHA-1-, SHA-256- og SHA-512-hashen for enhver tekst online i hex eller Base64. Kontrollér checksums og webhook-payloads. Gratis.

Free tool by Orkosi. Page: https://orkosi.com/tools/hash-generator?lang=da

Kontrollér, at en payload ankom uændret, sammenlign en checksum, eller opbyg en cache-nøgle. Indsæt teksten, og få de fire almindelige digests vist side om side.

1. Indsæt teksten.
2. Vælg hex- eller Base64-output.
3. Tryk på Generér, og kopiér den digest, du har brug for.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `text` | text | yes | Tekst. |
| `encoding` | "hex" \| "base64" | no | Output. Default: "hex". |

## Example

Input:

```json
{
  "text": "hello world"
}
```

Result:

```json
{
  "hashes": [
    {
      "algorithm": "MD5",
      "hash": "5eb63bbbe01eeed093cb22bb8f5acdc3"
    },
    {
      "algorithm": "SHA-1",
      "hash": "2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"
    },
    {
      "algorithm": "SHA-256",
      "hash": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9"
    },
    {
      "algorithm": "SHA-512",
      "hash": "309ecc489c12d6eb4cc40f50c902f2b4d0ed77ee511a7c7a9bcd3ca86d4cd86f989dd35bc5ff499670da34255b45b0cfd830e81f605dcf7dc5542e93ae9cd76f"
    }
  ],
  "sha256": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
  "bytes": 11
}
```

## Run it

It needs a free Orkosi account, nothing else. No credits are used.

- **A person**: open the page, enter an e-mail once, use the tool.
- **Claude or ChatGPT**: add the Orkosi connector `https://orkosi.com/api/v1/public/mcp` and sign in, or create the free account on the sign-in page. Then call `orkosi_run_free_tool` with `{ "tool": "hash-generator", "input": { … } }`.
- **Any agent or program that can make an HTTP request**:

  1. Once, create the account: `POST https://orkosi.com/api/v1/public/signup` with `{ "name": "…", "email": "…", "terms_accepted": true }` and no key. Ask the person for the e-mail and their agreement to the terms first. The answer carries `data.api_key`, shown once.
  2. Run the tool:

```bash
curl -X POST https://orkosi.com/api/v1/public/tools/hash-generator/run \
  -H "Authorization: Bearer $ORKOSI_API_KEY" -H "Content-Type: application/json" \
  -d '{"input":{"text":"hello world"}}'
```

The answer is `{ "data": { "tool": "…", "result": { … } } }`. A call without a key is answered 401 with the signup steps as data.

## Questions

**Hvilken hash skal jeg bruge?**

SHA-256 til alt nyt. MD5 og SHA-1 er ødelagt til sikkerhedsformål og er kun stadig nyttige som checksums mod utilsigtede ændringer.

**Kan jeg hashe en adgangskode med dette?**

Ikke til lagring. Adgangskoder kræver en langsom algoritme med salt, f.eks. Argon2 eller bcrypt. En almindelig SHA-256 kan gættes milliarder af gange i sekundet.

**Kan en hash vendes?**

Nej. En hash går kun én vej. Korte eller almindelige input kan stadig findes ved at gætte, og derfor har hemmeligheder brug for salt.

All free tools: https://orkosi.com/tools.md
