Question

What’s an elgamal cryptography ? And how does it work?

What’s an elgamal cryptography ? And how does it work?
0 0
Add a comment Improve this question Transcribed image text
Answer #1

ElGamal cryptographic system is based on asymmetric key encryption. It is a public-key cryptosystem. This system ensured an extra layer of security as it depends on the difficulty of finding discrete logarithm in cyclic group. It was invented in 1985 by Egyptian cryptographer Taher Elgamal. It uses a public and private key pair for encryption and decryption.

AlGamal encyption algorithm: Let’s say the two communicating parties are Alice (sender) and Bob (recipient).

The public key and the private key generation by Bob:

  • First a very large number (q) and a cyclic group (Fq) needs to be chosen.
  • Then two elements g and a needs to be chosen from that cyclic group (Fq), such that gcd of g and a is 1.
  • Then ga = h.
  • Now the cyclic group F, generated h, and g and q needs to be published as public key, and a needs to be retained as private key.

Encryption by Alice using public key generated by Bob:

  • An element k is to be selected from the cyclic group F, such that the gcd of q and k is equal to 1.
  • then s and p are computed, such that s = hk = gak and p = gk
  • s and message, M are multiplied.
  • Then the encryption is sent as (p, M*s) = (gk, M*s).

Decryption of the message by Bob:

  • s′ is calculated such that s′ = pa = gak
  • Then the message is decrypted by dividing M*s by s′, as s = s′.

Why this works?

This because both public and private key are taken into account while decryption. Here the message is morphed by multiplying it with gak. In order to decrypt the message, gk is provided as clue. Without having the private key a, it is impossible to retrieve the message M. Even if gk and ga are known, finding gak is extremely difficult as it involves finding discrete log in a cyclic group.

Screenshot of the program implemented in python:

Add a comment
Know the answer?
Add Answer to:
What’s an elgamal cryptography ? And how does it work?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT