Skip to content

Eve has got nothing on this implementation of Diffie-Hellman!πŸ˜ƒπŸ€“

Notifications You must be signed in to change notification settings

Lynette7/diffie-hellman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Diffie-Hellman Key Exchange Protocol

  • The Diffie-hellman key exchange protocol is a symmetric-key algorithm which uses a single key for encryption and decryption of messages.

  • Diffie-Hellman operates in a cyclic group by definition: the elements 𝑔,𝑔^π‘Ž,𝑔^𝑏,𝑔^(π‘Žπ‘) are in the cyclic group generated by 𝑔, where 𝑔 is the base, 𝑔^π‘Ž is Alice's public key, 𝑔^𝑏 is Bob's public key and 𝑔^(π‘Žπ‘) is both Alice's and Bob's mutual secret key.

  • I have implemented a high-level program of the Diffie-Hellman key exchange protocol in Rust where random numbers are generated as the private keys for both bob and Alice.

  • The base and prime modulus are public and together with the private keys, are used to compute the public keys and finally generate the shared secret key.

  • I have also used Advanced Encryption Standard(AES) which along with the shared secret key is used to encrypt and decrypt messages shared between Alice and Bob.

  • Eve has got nothing on this program!πŸ˜ƒπŸ€“

Releases

No releases published

Packages

No packages published

Languages