Skip to content

JDeep1234/Crypto_C

Repository files navigation

Applied Cryptography Lab Programs

Implemented Cryptographic Techniques

1. Classical Cryptography

2. Symmetric Key Cryptography

3. Asymmetric Cryptography

  • RSA Algorithm: Public-key cryptosystem
  • Demonstrates key generation and message encryption/decryption

4. Key Exchange Protocols

5. Security Techniques

🛠️ Prerequisites

  • GCC Compiler
  • Standard C Libraries
  • Math Library

💻 Compilation Instructions

Compile Individual Programs

# General Compilation Pattern
gcc -o program_name program_name.c -lm

# Example Compilations
gcc -o caesar_cipher caesar_cipher.c
gcc -o rsa_algorithm rsa_algorithm.c -lm

#For Hashing Program to compile
gcc auth_hash.c -o auth_hash -lssl -lcrypto
#For Hashing Program to Run
./auth_hash

#For installing Openssl
sudo apt-get install libssl-dev

#For AES
gcc aes_algorithm.c -o aes -lssl -lcrypto

#For DES
gcc des_algorithm.c -o des -lssl -lcrypto

Compile All Programs

# Using Makefile
make all

# Clean compiled binaries
make clean

🔍 Cryptographic Concepts Covered

  • Encryption/Decryption
  • Key Generation
  • Hashing
  • Public Key Infrastructure
  • Secure Communication Protocols

📦 Project Structure

cryptography_lab/
├── caesar_cipher.c
├── des_algorithm.c
├── aes_algorithm.c
├── rsa_algorithm.c
├── diffie_hellman.c
├── elgamal_crypto.c
├── mitm_attack.c
├── hashing_auth.c
├── Makefile
└── README.md

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages