El Gamal encryption question

  • Thread starter ploppers
  • Start date
  • Tags
    Encryption
In summary, this conversation discusses how to decrypt a message encrypted using the ElGamal encryption method. The public key is given as p = 29, g = 18, and a = 14 and the message was translated into numbers using a specific system. The question asks for the original message based on the given encrypted message and the solution involves using the formula for decryption in ElGamal, finding inverses using the Extended Euclidean Algorithm, and performing modular arithmetic.
  • #1
ploppers
15
0

Homework Statement



Suppose someone uses ElGamal to encrypt a message. You know
that the public key is p = 29, g = 18, and a = 14. The message was translated
from letters into numbers by the system A $ 2, B $ 3, ..., Z $ 27. If the
encrypted message was
M1 = 17 M2 = 14; 11; 9; 24; 23; 24; 11;
then what was the original message?


Homework Equations



N/a (please read below)

The Attempt at a Solution



I understand how to do this question actually if I was given the unknown k value. Does this question expect us to break the code and find the unknown k value...? Because this could take a very long time considering that's what the encryption methods are designed to do...
 
Physics news on Phys.org
  • #2


Hello,

Thank you for your question. No, this question does not require you to break the code and find the unknown k value. The purpose of this question is to test your understanding of the ElGamal encryption method and its components.

To solve this problem, you will need to use the formula for decryption in ElGamal encryption:

M = (M1 / (M2^a)) mod p

In this case, M1 = 17 and M2 = 14; 11; 9; 24; 23; 24; 11. Plugging these values into the formula, we get:

M = (17 / (14^14)) mod 29
M = (17 / (27^14)) mod 29

Now, we need to find the inverse of 14 and 27 mod 29. Using the Extended Euclidean Algorithm, we get that the inverse of 14 is 25 and the inverse of 27 is 4.

Substituting these values into our formula, we get:

M = (17 * 25^14) mod 29
M = (17 * 4^14) mod 29
M = (17 * 18^14) mod 29
M = (17 * 18^2)^7 mod 29
M = (17 * 324)^7 mod 29
M = (17 * 16)^7 mod 29
M = 272^7 mod 29
M = 17 mod 29

Therefore, the original message was "A" as it corresponds to the number 1 in the system A $ 2, B $ 3, ..., Z $ 27.

I hope this helps clarify the question for you. Let me know if you have any further questions. Good luck!
 

1. What is El Gamal encryption?

El Gamal encryption is a public-key cryptosystem that uses a combination of symmetric and asymmetric encryption techniques to securely send and receive information over an unsecured network.

2. How does El Gamal encryption work?

El Gamal encryption works by using a pair of keys- a public key and a private key. The public key is used to encrypt the message, while the private key is used to decrypt the message. The keys are generated using complex mathematical algorithms, making it difficult for anyone to decrypt the message without the private key.

3. What are the advantages of using El Gamal encryption?

One of the main advantages of using El Gamal encryption is that it provides a high level of security, as the keys used are very difficult to crack. It also allows for secure communication over unsecured networks, as the public key can be shared with anyone without compromising the security of the message. Additionally, El Gamal encryption is resistant to brute force attacks.

4. What are the limitations of El Gamal encryption?

One of the main limitations of El Gamal encryption is that it is slower compared to other encryption methods, as it involves complex mathematical computations. It also has a larger key size, making it more resource-intensive. Additionally, El Gamal encryption is vulnerable to certain attacks, such as the chosen ciphertext attack.

5. How is El Gamal encryption different from other encryption methods?

El Gamal encryption is different from other encryption methods in that it uses a combination of symmetric and asymmetric encryption techniques. This makes it more secure compared to symmetric encryption alone, as it does not require the sharing of a secret key. Additionally, El Gamal encryption is based on number theory, while other encryption methods may use different mathematical principles.

Similar threads

  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • General Math
Replies
1
Views
2K
  • General Math
Replies
1
Views
2K
  • Nuclear Engineering
Replies
2
Views
1K
  • Nuclear Engineering
Replies
7
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
  • Linear and Abstract Algebra
Replies
1
Views
2K
Replies
3
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
723
  • Programming and Computer Science
Replies
19
Views
970
Back
Top