Skip to content

Latest commit

Β 

History

History
94 lines (69 loc) Β· 2.13 KB

File metadata and controls

94 lines (69 loc) Β· 2.13 KB

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