About this tool
A learning tool that encrypts text by XOR-ing it with a repeating key, and decrypts the result back. It runs in your browser and nothing is sent anywhere.
Type a message and a key, then press Encrypt. The message and the key are converted to UTF-8 bytes, each message byte is XOR-ed with the next key byte (the key repeats when it is shorter), and the result is shown as lowercase hex with no spaces. To decrypt, paste that hex into the message box, enter the same key and press Decrypt. Spaces and line breaks in the hex are ignored and upper or lower case is fine, but the digits must be valid and an even count, otherwise a hex error is shown.
Both directions need a key; with an empty key an error is shown. The output does not update as you type, so press the button each time. Non-English text works because the work is done on UTF-8 bytes, but a wrong key on decrypt usually gives garbled text with replacement characters rather than an error, since XOR can not tell whether a key is right.
Repeating-key XOR is trivially broken, especially with a short key, so use it only for demos, puzzles or light obfuscation, never for secrets.