This project demonstrates a simple XOR cipher for encoding and decoding text. XOR encryption is a symmetric key encryption technique where the same key is used for both encryption and decryption.
xor_encoder.py
: Script for encoding text using the XOR cipher.xor_decoder.py
: Script for decoding text using the XOR cipher.
- Run the encoder script:
python xor_encoder.py
- Enter the text you want to encode.
- Enter the encryption key (an integer).
The script will output the encoded text.
- Run the decoder script:
python xor_decoder.py
- Enter the text you want to decode.
- Enter the decryption key (an integer).
The script will output the decoded text.
$ python xor_encoder.py
Enter the text to encode: Hello, World!
Enter the encryption key (integer): 123
Encoded text: ϮϢϢϩϧϧϧϢϧϯϧϦϨϢ
$ python xor_decoder.py
Enter the text to decode: ϮϢϢϩϧϧϧϢϧϯϧϦϨϢ
Enter the decryption key (integer): 123
Decoded text: Hello, World!