A console-based program that encrypts and decrypts text using simple algorithms.
- Encryption & Decryption of text using:
- Shift algorithm (Caesar cipher style, A→B→C…)
- Unicode algorithm (based on character codes)
- Command-line arguments:
-mode→encordec-key→ shift amount-data→ direct text input-in/-out→ file input/output-alg→ algorithm (shiftorunicode)
- Supports both direct input and file input/output
- Graceful error handling for missing or invalid arguments
- Default values when arguments are omitted
- Java 11+
- OOP & modular design
- String and character operations
- Command-line parsing
- File I/O (read & write)
- Error handling and defaults
Encrypt with shift algorithm:
java -jar encryption-decryption.jar -mode enc -key 5 -data "Hello World!" -alg shift