Crypto Lab

Symmetric

XOR Cipher

Combines each byte with a repeated key byte using XOR.

Symmetric

Playground

Change inputs and inspect the transformation

XOR is reversible: applying the same key stream again recovers the message.

Output

Cipher bytes

27 20 38 39 2b 59 28 37 20 3b 31 36

Decrypted

LEARN CRYPTO

Steps

Transformation trace

  1. Repeat key

    key => keykeykeykey

    The key stream repeats until it matches the message length.

  2. Encrypt

    message byte XOR key byte => 27 20 38 39 2b 59 28 37 20 3b 31 36

    XOR produces byte values, shown here in hex.

  3. Decrypt

    cipher byte XOR key byte => LEARN CRYPTO

    Applying the same key stream again cancels the XOR.