A simple command-line Caesar Cipher encryption and decryption tool written in C.
The Caesar Cipher is a classic substitution encryption technique where each letter in the input message is shifted by a fixed number of positions (commonly by 3) in the English alphabet. This program supports both encryption and decryption using that technique.
Before you run the program, make sure you have the following :
- A C compiler (e.g.,
gcc
) - The Make utility (to build the project using a Makefile)
- A terminal or shell environment (macOS, Linux, or Windows using WSL/MinGW)
(Follow these steps when setting up the project for the first time.)
cd Desktop
git clone https://github.com/manakcodes/caesar-cipher-using-c.git
(Follow these steps to use the caesar cipher every time.)
cd ~/Desktop/caesar-cipher-using-c
make
./CaesarCipher
make clean
🪪 LICENSE
.
├── LICENSE
├── Main.c
├── Makefile
├── README.md
└── src
├── caesar_cipher.h
├── crypt.h
├── decrypt_caesar.h
└── encrypt_caesar.h
2 directories, 8 files
🛸 Project Tree Details
📁 Project Tree Details
-
Entry point of the program. Includes all other headers and handles execution flow.
-
Contains global constants, the CaesarCipher struct, and validation helpers.
-
Implements Caesar Cipher encryption logic.
-
Implements Caesar Cipher decryption logic.
-
Manages user I/O and CLI interactions, including string input and main crypt logic. - src/crypt.h