Question

Alice has a message M=51 to send to Bob securely using ElGamal encryption algorithm. Bob chooses...

Alice has a message M=51 to send to Bob securely using ElGamal encryption algorithm. Bob chooses p= 8167, g=4063, x=71. Alice chooses r=29. Show the encryption and decryption steps.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

ElGamal Algorithm:

Encryption:

Bob chooses 1) a prime number, p= 8167,

                     2) a number g between 1 and (8167-1) 8166 as 4063

              and 3) a random number (private key), x=71

He calculates Y using the formula Y=Gx mod P =5081.

Bob Public Key now is [P,G,Y]=[8167,4063,5081]

Alice creates a message to send. i.e., M=51 and chooses random value, r=29.

Two new values are calculated using the formulae:

a=GrmodP=7820

b=Yr M modP=6181

Cipher Text C=(7820,6181)

Decryption:

Next Bob Decrypts the message using the formula b/(ax) mod P

Message Decrypted = 51 which is equal to Plain Text (M)

Add a comment
Know the answer?
Add Answer to:
Alice has a message M=51 to send to Bob securely using ElGamal encryption algorithm. Bob chooses...
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
ADVERTISEMENT