Single-byte XOR — Every byte is XORed with the same key byte.
Every byte XORed with the same key byte. Exhaustively solvable over 256 keys.
A worked example§
Encrypting a sample with the cipher itself, at build time:
MEET ME BY THE OLD CLOCK TOWER AT DAWN
Key: 66
produces the ciphertext
0f070716620f0762001b62160a07620d0e0662010e0d010962160d150710620316620603150c
This example is generated by running the cipher when the page is built, and the round trip is checked, so it always matches what the solver does.
How it is broken§
Two hundred and fifty-six keys, scored by byte frequency. The first exercise in every CTF crypto track.
History and context§
Not a classical cipher but the most common one in practice, because it is four lines of code and looks like encryption to anyone who does not look twice.
See also§
Browse every cipher in the Byte-level ciphers family, read the history of codebreaking, or return to the wiki main page.
Frequently asked questions§
How is the Single-byte XOR broken?
Two hundred and fifty-six keys, scored by byte frequency. The first exercise in every CTF crypto track.
What key does the Single-byte XOR use?
one byte. There are 256 possible keys.
How much ciphertext do I need?
At least 4 characters for this solver to attempt it; short messages can be readable and still not be proof.
Can I break a Single-byte XOR on this page?
Yes — the browser solver on this page handles it directly. Paste the ciphertext into the solver and press the button.