XOR Microlab (One-Time Pad) — Encrypt & Decrypt

Type **plaintext**/**ciphertext** and an **OTP**, or generate an OTP. Prefix any input with hex: to enter raw bytes (e.g., hex:414141 for “AAA”).

Mode:
hex: —
hex: —
hex: —
OTP uses a time-seeded PRNG as printable ASCII (32–126) unless you type hex: yourself.

Live XOR Illustration

Plaintext
OTP
XOR (PT ⊕ OTP)

XOR Result

xor hex: —
xor text: —