AES-256-GCM Verschlüsselungstester

Teste AES-256-GCM im Browser mit Passphrase und PBKDF2-Schlüsselableitung.

// about

Über dieses Tool

Das Tool verschlüsselt mit AES-256-GCM und leitet mit PBKDF2-SHA-256 einen Schlüssel ab. Es dient dem Lernen und lokalen Tests, nicht dem Produktions-Key-Management.

So verwenden Sie es

  1. Gib den zu verschlüsselnden oder entschlüsselnden Text ein.
  2. Gib dieselbe Passphrase ein und wähle die Aktion.
  3. Kopiere das Ergebnis und verwende keine Produktionsgeheimnisse erneut.

Warum dieses Tool genutzt wird

  • Teste AES, ohne Klartext hochzuladen.
  • Verwende eine Passphrase und einstellbare PBKDF2-Iterationen.
  • Die Ausgabe enthält die Informationen zum Entschlüsseln.

Häufig gestellte Fragen (FAQ)

Ist das für Produktionsgeheimnisse geeignet?

Nein. Nutze ein geprüftes Kryptokonzept und verwaltete Schlüsselablage.

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 "AES-Verschlüsselungstester" that meets the requirements below.

## Goal

Build a tester that encrypts and decrypts text with AES-256-GCM using a password.

## Core features

- Encrypt and decrypt modes
- Derive the key from the password with PBKDF2 and a high iteration count
- Random salt and 12-byte IV for every encryption
- Output salt + IV + ciphertext as one Base64 string
- Copy result

## Inputs

- Plain text or Base64 ciphertext
- Password

## Outputs

- Base64 ciphertext or decrypted plain text
- Summary of algorithm and parameters

## Edge cases and handling rules

- Show 'authentication failed' for a wrong password or tampered ciphertext
- Reject empty passwords
- Explain that the same plain text encrypts differently each time
- Use the Web Crypto API so keys and text never leave the browser

## 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)

- Encrypt then decrypt with the same password returns the original
- Changing one character of the ciphertext makes decryption fail
- Encrypting the same input twice gives different output

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-encryption-tester/SKILL.md speichern, damit Agenten wie Claude Code es bei jeder Änderung am Tool wiederverwenden.

---
name: build-encryption-tester
description: Use when building or changing a AES-Verschlüsselungstester tool. Build a tester that encrypts and decrypts text with AES-256-GCM using a password.
---

# Build: AES-Verschlüsselungstester

## Goal

Build a tester that encrypts and decrypts text with AES-256-GCM using a password.

## 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

- Encrypt and decrypt modes
- Derive the key from the password with PBKDF2 and a high iteration count
- Random salt and 12-byte IV for every encryption
- Output salt + IV + ciphertext as one Base64 string
- Copy result

## Inputs

- Plain text or Base64 ciphertext
- Password

## Outputs

- Base64 ciphertext or decrypted plain text
- Summary of algorithm and parameters

## Rules

- Show 'authentication failed' for a wrong password or tampered ciphertext
- Reject empty passwords
- Explain that the same plain text encrypts differently each time
- Use the Web Crypto API so keys and text never leave the browser
- 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

- [ ] Encrypt then decrypt with the same password returns the original
- [ ] Changing one character of the ciphertext makes decryption fail
- [ ] Encrypting the same input twice gives different output

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.