So funktioniert es
AES is a block cipher with a 128-bit block size and a key of 128, 256 or (rarely) 192 bits. A block cipher alone can only encrypt exactly one block, so it needs a mode of operation to handle anything longer. The mode is where the security is won or lost. AES-GCM is an authenticated mode: alongside the ciphertext it produces an authentication tag, and decryption refuses to return plaintext if that tag does not match. That single property defeats an entire class of attacks, because an adversary who flips a bit in transit causes a hard failure rather than a silently corrupted message.
GCM needs a nonce — a number used once — which is typically 96 bits of random data. The nonce is not secret and is normally prefixed to the ciphertext. What matters absolutely is that the same key and nonce pair is never reused: doing so leaks the XOR of the two plaintexts and, worse, allows an attacker to forge tags. This tool generates a fresh random nonce on every encryption and keeps it with the output, which is why encrypting the same text twice gives two different ciphertexts.
CBC is the older mode and is included only because so much existing code uses it. It chains each block into the next and requires an initialisation vector, which like a GCM nonce must be unpredictable. Crucially, CBC provides no authentication on its own: an attacker can flip bits in the ciphertext and know exactly which bits of the next plaintext block will flip. Padding-oracle attacks against unauthenticated CBC were the mechanism behind several high-profile breaches. If you are writing new code, use GCM; if you must use CBC, encrypt-then-MAC with a separate key.
RSA is an asymmetric cipher, so it solves a different problem: the encryptor uses a public key and only the holder of the matching private key can decrypt. Its mathematics — modular exponentiation over the product of two large primes — is slow and limited to payloads smaller than the key size, so RSA is nearly always used to encrypt a symmetric key that then encrypts the bulk data. This tool implements RSA-OAEP with SHA-256, the padding scheme that replaced the vulnerable PKCS#1 v1.5 for encryption. Key pairs are generated locally with the browser's CSPRNG.
Typische Anwendungsfälle
- Send a password or an API key to a colleague over chat without putting the plaintext in the message.
- Verify that a ciphertext your application produced decrypts correctly with the key you configured.
- Generate an RSA key pair to test a signature or encryption flow against your own service.
- Confirm which AES mode and IV a legacy system is using by decrypting a known plaintext sample.
- Produce a short AES-GCM test vector to paste into a unit test.
- Check whether a vendor's documentation about authenticated encryption matches what their SDK actually emits.
Zuletzt aktualisiert: 2026-10-14 — der Artikeltext wird auf Englisch angezeigt; die Oberfläche ist übersetzt.