Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Latest commit

 

History

History
46 lines (30 loc) · 1.23 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.23 KB

Diffie Hellman Encryption Algorithms

This repository contains two implementations of the Diffie Hellman key exchange protocol:

  1. Diffie Hellman over Prime Fields
  2. Diffie Hellman over Elliptic Curves

Project Structure

The repository is structured as follows: |-- src/ |-- assignment01.cpp # Implementation of Diffie Hellman over Prime Fields |-- assignment02.cpp # Implementation of Diffie Hellman over Elliptic Curves

Requirements

  • Programming Language: C++17
  • Standard libraries only (as per C++ Standard Library Reference)
  • Each program must compile into a single executable: a.exe.

Execution

Compilation

To compile the code:

g++ -std=c++17 -o a.exe bai1.cpp  # For Diffie Hellman over Prime Fields
g++ -std=c++17 -o a.exe bai2.cpp  # For Diffie Hellman over Elliptic Curves

Execution

Run the compiled program with input and output files:

./a.exe test.inp test.out

Academic Integrity

Plagiarism or sharing solutions with peers is strictly prohibited and will result in a score of zero for all involved parties.

Contact

For any queries regarding the project, please reach out to:

Email: ptnhanit230104@gmail.com