A console-based Java application that encrypts or decrypts the contents of a text file using a simple Caesar Cipher algorithm. The program reads text from an input file, processes it based on the user's choice, and writes the result to a new output file.
- Encrypts the contents of a text file
- Decrypts an encrypted text file
- Uses a simple Caesar Cipher (Shift by 3)
- Reads data from an input file
- Writes processed data to a new output file
- Handles invalid user choices
- Uses efficient file handling with BufferedReader and BufferedWriter
- Java
- VS Code
- Git & GitHub
Task-3-File-Encryption-Decryption
│
├── FileEncryptionDecryption.java
├── input.txt
├── encrypted.txt
├── decrypted.txt
├── README.md
├── .gitignore
└── Screenshots
├── input-file.png
├── encrypt-output.png
├── encrypted-file.png
├── decrypt-output.png
└── decrypted-file.png
javac FileEncryptionDecryption.javajava FileEncryptionDecryption1. Encrypt File
2. Decrypt File
- Input file name
- Output file name
The program will process the file and save the result.
This project uses a Caesar Cipher with a shift value of 3.
Original Text
Hello Java
Encrypted Text
Khoor#Mdyd
Decrypted Text
Hello Java
- File Handling
- BufferedReader
- BufferedWriter
- FileReader
- FileWriter
- StringBuilder
- String Manipulation
- Loops
- Conditional Statements
- Exception Handling
- Scanner Class
Sparsh Mehta
Project completed as part of the Cognifyz Technologies Java Development Internship (Level 2 - Task 3).




