Find for which $k$ is $6^{k} \equiv 2 \mod {13}$
I'm having trouble with these types of question in my cryptography class. This is part of Diffie–Hellman algorithm for calculating a shared key.
I know that this can be written as discrete logarithm $\log_{6}{k}$ in $Z^{*}_{13}$ but that is all I could manage to do.
Thanks for any help.
Trial and error, since the modulus is small.
If the modulus is larger then the problem is believed to be computationally difficult - this is the whole point of Diffie-Hellman!