Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 832 Bytes

ReadMe.MD

File metadata and controls

26 lines (18 loc) · 832 Bytes

XOR Encryption and Decryption

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.

Features

  • 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

Prerequisites

  • Java Development Kit (JDK) 8 or higher
  • Git (for version control)

Installation

  1. 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
    
    

Running the code not from the cli

  1. Please run main method from Main class