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

This repository features two implementations of the Diffie Hellman protocol: over prime fields and elliptic curves. Both are written in C++17, focusing on security and standard compliance. Ideal for cryptography learning and practice.

License

Notifications You must be signed in to change notification settings

NhanPhamThanh-IT/Diffie-Hellman-Key-Exchange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This repository features two implementations of the Diffie Hellman protocol: over prime fields and elliptic curves. Both are written in C++17, focusing on security and standard compliance. Ideal for cryptography learning and practice.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages