Hash-Generator

MD5-, SHA-1-, SHA-256-, SHA-384- und SHA-512-Hashes erzeugen.

// about

Über dieses Tool

Ein Hash ist wie ein digitaler Fingerabdruck für Text. Egal wie lang die Nachricht ist, er erzeugt einen Code fester Länge. Unterstützt MD5, SHA-1, SHA-256 und SHA-512.

So verwenden Sie es

  1. Geben Sie Ihren Text in das Feld ein.
  2. Wählen Sie den gewünschten Hash-Algorithmus.
  3. Klicken Sie auf 'Ausführen' und kopieren Sie den Hash-Code.

Warum dieses Tool genutzt wird

  • Prüft, ob zwei Texte oder Dateien absolut identisch sind.
  • Unterstützt gängige Algorithmen wie SHA-256 und MD5.
  • Berechnet Sicherheits-Hashes in Echtzeit.

Häufig gestellte Fragen (FAQ)

Kann man den ursprünglichen Text aus dem Hash zurückerhalten?

Nein! Hash-Funktionen arbeiten nur in eine Richtung (Einwegfunktion).

Wofür wird SHA-256 genutzt?

In der IT-Sicherheit und zur Überprüfung der Integrität von Downloads.

Ist MD5 sicher?

MD5 eignet sich für schnelle Dateichecks, für Sicherheit empfiehlt sich SHA-256.

Ratgeber · Sicherheit · 8 Min. Lesezeit

Hashfunktionen einfach erklärt: MD5, SHA-1 oder SHA-256 und wie man sie einsetzt

Download-Prüfsummen, Git-Commit-IDs und Blockchain-Adressen sind allesamt Hashwerte. Dieser Leitfaden erklärt, wie sich Hashing von Verschlüsselung unterscheidet und welcher Algorithmus für welche Aufgabe passt.

Eine Hashfunktion nimmt eine Eingabe beliebiger Länge und erzeugt einen kurzen Wert fester Länge, den Hash oder Digest. Ob Sie ein Wort oder ein mehrere Gigabyte großes Video hashen — SHA-256 liefert immer 256 Bit, also 64 Hexadezimalzeichen.

SHA-256("hello")  = 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
SHA-256("hello!") = ce06092fb948d9ffac7d1a376e404b26b7575bcc11ee05a4615fef4fec3a308b
MD5("hello")      = 5d41402abc4b2a76b9719d911017c592
Eigenschaften guter Hashfunktionen, warum MD5 und SHA-1 als unsicher gelten und wie Sie Hashes für Dateiintegrität und Passwörter richtig nutzen.
Ratgeber lesen →
Mit KI bauen

Dieses Tool selbst mit KI bauen

Sie möchten eine eigene Version? Kopieren Sie den Arbeitsauftrag in einen KI-Chat oder speichern Sie die Skill-Datei für einen KI-Coding-Agenten. Beide enthalten die Funktionen, Sonderfälle und Testfälle, die wir verwendet haben.

Prompt und Skill sind auf Englisch, das KI-Tools in jeder Sprache gut verstehen.

KI-Arbeitsauftrag (Prompt)

Unverändert in Claude, ChatGPT oder Gemini einfügen.

You are an experienced full-stack web developer. Build a web tool called "Hash-Generator" that meets the requirements below.

## Goal

Build a tool that computes MD5, SHA-1, SHA-256 and SHA-512 hashes of text in one go.

## Core features

- Show several algorithms at once
- Output as lower/upper-case hex or Base64
- HMAC mode with a secret key
- Compare two hash values
- Copy button for each result

## Inputs

- Text to hash
- Output format and optional HMAC key

## Outputs

- Hash per algorithm
- Comparison result (match/mismatch)

## Edge cases and handling rules

- Hash the empty string correctly
- Explain that CRLF versus LF line endings change the hash
- Keep the UI responsive for large inputs
- Warn that MD5 and SHA-1 are unsuitable for security

## Implementation requirements

- Build it as a single page (HTML, CSS, JavaScript) that runs entirely in the browser, and never send the user's input to a server.
- Make the UI responsive and easy to use on mobile; label every input and keep everything keyboard accessible.
- Add a Copy button for results and show clear, friendly error messages for invalid input.
- Keep the core logic in functions separate from the UI so it can be unit-tested.

## Definition of done (test cases)

- SHA-256('hello') = 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
- MD5('hello') = 5d41402abc4b2a76b9719d911017c592
- 'Hello' and 'hello' produce different hashes

First outline your implementation plan in at most five lines, then write the complete code, and finally explain how to check the test cases above.

Skill (SKILL.md)

Als .claude/skills/build-hash-generator/SKILL.md speichern, damit Agenten wie Claude Code es bei jeder Änderung am Tool wiederverwenden.

---
name: build-hash-generator
description: Use when building or changing a Hash-Generator tool. Build a tool that computes MD5, SHA-1, SHA-256 and SHA-512 hashes of text in one go.
---

# Build: Hash-Generator

## Goal

Build a tool that computes MD5, SHA-1, SHA-256 and SHA-512 hashes of text in one go.

## Workflow

1. Review the required features, inputs and outputs below and ask about anything missing first.
2. Implement the core logic as pure functions separate from the UI.
3. Check the logic against the test cases in the verification list.
4. Build a responsive UI with an input form, a result area and a Copy button.
5. Reproduce each edge case listed under Rules and refine the error messages.

## Core features

- Show several algorithms at once
- Output as lower/upper-case hex or Base64
- HMAC mode with a secret key
- Compare two hash values
- Copy button for each result

## Inputs

- Text to hash
- Output format and optional HMAC key

## Outputs

- Hash per algorithm
- Comparison result (match/mismatch)

## Rules

- Hash the empty string correctly
- Explain that CRLF versus LF line endings change the hash
- Keep the UI responsive for large inputs
- Warn that MD5 and SHA-1 are unsuitable for security
- Build it as a single page (HTML, CSS, JavaScript) that runs entirely in the browser, and never send the user's input to a server.

## Verification

- [ ] SHA-256('hello') = 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
- [ ] MD5('hello') = 5d41402abc4b2a76b9719d911017c592
- [ ] 'Hello' and 'hello' produce different hashes

Tipps für die Arbeit mit KI

  • Nennen Sie in der ersten Zeile Ihren Stack (React, Vue oder reines HTML), damit der Code passt.
  • Lassen Sie die KI die Testfälle ausführen und die Ergebnisse zeigen, bevor Sie den Code übernehmen.
  • Fügen Sie keine echten Passwörter, Kundendaten oder API-Schlüssel ein; nutzen Sie Beispielwerte.