A lightweight command-line Caesar Cipher implementation written in Rust.
A lightweight command-line Caesar Cipher implementation written in Rust.
The project focuses on implementing classical substitution-based cryptography while practicing Rust fundamentals such as functions, string handling, input validation, error-aware input processing, terminal interaction, and external crate usage.
- Caesar Cipher encryption
- Caesar Cipher decryption
- Interactive command-line interface
- Supports uppercase alphabetic messages and spaces
- Shift validation from `0` to `25`
- Empty input validation
- Invalid character detection
- Dynamic terminal-width output box
- `Ctrl+C` interruption handling
- Clean separation between input, validation, and cipher logic
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CAESAR CIPHER β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-> Enter the message: HELLO WORLD
-> Number of shifts: 3
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Original : HELLO WORLD β
β Encrypted: KHOOR ZRUOG β
β Decrypted: HELLO WORLD β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ