Skip to content

KanikaIm-erb/Caesar-Cipher-Cryptography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Caesar Cipher in C

This program implements the Caesar Cipher, a simple encryption technique where each letter in the plaintext is shifted by a fixed number of places in the alphabet.


πŸš€ Programming Language

This program is written in C, making it efficient for handling string manipulations.


πŸ›  Features

βœ… Encryption and Decryption options
βœ… Supports both uppercase & lowercase letters
βœ… Input validation (ensures the key is between 0-25)
βœ… User-friendly menu-driven program


πŸ“Œ How It Works

  1. Encryption: Shifts each letter forward by a given key.
  2. Decryption: Shifts each letter backward by the same key.
  3. Only alphabetic characters are transformed, keeping spaces and punctuation unchanged.

Encryption Example with key==3

plaintext

HELLO

ciphertext

KHOOR

Decryption Example with key==3

ciphertext

KHOOR

Decrypted

HELLO

πŸ“œ How to Run

  1. Compile the program using a C compiler:
    gcc Caesar_Cipher.c -o cipher

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages