This project demonstrates XOR encryption and decryption using Java. It includes functions to encrypt and decrypt text using a given key, and an implementation to break XOR encryption by brute-forcing the key.
- Encrypt a string using XOR with a given key
- Decrypt an XOR-encrypted array of integers with a given key
- Break XOR encryption by brute-forcing the key based on encrypted numbers array
- Java Development Kit (JDK) 8 or higher
- Git (for version control)
- Clone the repository:
git clone https://github.com/tomer157/encrypt-decrypt-xor.git cd xor-encryption-engine javac -d out src/encryption/*.java src/Main.java java -cp out Main
- Please run main method from Main class