PhotoEncrypter is a Java Swing-based desktop application that allows users to encrypt and decrypt image files using a simple XOR operation and a numeric key. It offers a basic graphical interface for selecting an image and applying the encryption in just a few clicks.
This tool demonstrates how XOR-based encryption works by scrambling the bytes of an image file using a user-provided key. The same key can be used again to reverse the encryption and restore the original image.
β οΈ Note: This is a basic method and not suitable for secure encryption. It's meant for educational purposes only.
- Encrypt image files using a numeric key
- Decrypt using the same key
- Simple and minimal GUI built with Java Swing
- One-click image selection and encryption/decryption
- Clone the repository:
git clone https://github.com/ArjunPatil15/PhotoEncrypter.git- Navigate to the project directory:
- Compile the Java file:
- Run the application:
- Enter a numeric key (e.g., 123) in the text field.
- Click on the "Open Image" button.
- Select an image file from your computer.
- The image will be encrypted or decrypted based on the key.
- A confirmation message will be shown once the operation is done.
- Enter key:
123 - Encrypt an image using this key
- To decrypt, run the app again and enter the same key
123on the same file