XOR Cipher

Encrypt and decrypt using XOR operation. Supports ASCII, hex, and binary keys. XOR is reversible—same operation encrypts and decrypts.

Input

Key

Output


                                

                                

How XOR Works

XOR (exclusive or) compares bits: same bits = 0, different bits = 1. Key property: A XOR B XOR B = A, making it reversible.

Example: 'A' (65) XOR key 42 = 107 → 107 XOR 42 = 65 ('A') again