I have my Network Security finals. In elgamal cryptosystem, I am often encountering these equations like this
3 = (10^XA) mod 19
now everywhere I am finding only method to solve it, where I start at 0 and keep changing value for XA until the equation satisfies.
Is there any better method to solve using pen and paper + calculator?