New answers tagged

2

As I mentioned in my comment, how you are proposing to use El Gamal has little to do with how we use it (or any public key encryption system) in practice. However, I can modify the question slightly in a way to make it relevant: But what if have multiple messages I want to encrypt? Would it be correct to use the same shared secret for all these messages? ...


4

Now I noticed that no matter which generator I use, when I use power-mod such that g^(q-1) mod q the result always 1 Congratulations, you just rediscovered Fermat's Little Theorem which says that for all primes $p$ and all non-zero integers $a$ which are not multiples of $p$, it holds that $a^{p-1}\bmod p=1$. So if I have the group order set to 8009 minus ...


Top 50 recent answers are included