Brute-force every byte key, find the one whose decryption is printable English with 'the '.
Read ONE line: a hex-encoded ciphertext that was XOR-encrypted with a single unknown byte (0..255).
Try every key. The correct one decrypts to a string that:
1. consists entirely of printable ASCII (`32 <= b <= 126`), and
2. contains the substring `the ` (with trailing space).
Print the recovered plaintext.
Test ciphertext: `213d30753834323c36753c26753c3b75213d3075373a2d` → `the magic is in the box` (key 0x55).
Sign in to save your code and track progress across devices.