Simple command-line tool for encoding and decoding messages using XOR cipher with Base64 encoding.
- Encodes/decodes any text with XOR cipher
- Supports all characters (Unicode, emojis, special chars)
- Base64 output for safe storage and transmission
- Key can be stored in file or entered manually
- Binary-safe file I/O
- Create new Empty Project
- Create
src/filter - Add all 4 .cpp files from
src/folder - Build and run
- Put your message in
input.txt - (Optional) Put your key in
key.txt, or leave empty to type it - Run program, select
[1] Encode - Encoded message appears in
output.txt
- Put Base64 encoded text in
input.txt - Use the same key from encoding
- Run program, select
[2] Decode - Original message appears in
output.txt
- XOR Cipher - Message is XORed with the key (byte by byte, key repeats if shorter)
- Base64 Encoding - Result is converted to Base64 for safe text representation
- Binary I/O - Files are read/written in binary mode to preserve all characters
XOR cipher is NOT secure for real-world encryption. This is a learning project. For actual security, use established libraries like OpenSSL.