Skip to content

A lightweight command-line Caesar Cipher implementation in C, supporting both encryption and decryption operations.

License

Notifications You must be signed in to change notification settings

manakcodes/caesar-cipher-using-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caesar Cipher Using C

A simple command-line Caesar Cipher encryption and decryption tool written in C.


🔐 What is Caesar Cipher?

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.

more about caesar cipher


🛠️ Tools & Languages Used

C language logo gcc logo Cmake logo VS-Code logo bash-terminal logo git logo github logo

🖥️ Project Requirements

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)

🤖 How to Run This On Your Device

First-Time Setup Instructions

(Follow these steps when setting up the project for the first time.)

⒈ Navigate to Desktop (you can clone in any directory)

cd Desktop

⒉ Clone the Repository

git clone https://github.com/manakcodes/caesar-cipher-using-c.git


🏹 How to Use

(Follow these steps to use the caesar cipher every time.)

⒈Enter the project directory

cd ~/Desktop/caesar-cipher-using-c

⒉ Compile the Source Code Using Makefile

make

⒊ Run the Program

./CaesarCipher

⒋ Clean Build Artifacts (To remove compiled files and reset the project state)

make clean


🪪 LICENSE

🌲 Project Tree


.
├── 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


About

A lightweight command-line Caesar Cipher implementation in C, supporting both encryption and decryption operations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published