I've been looking everywhere for a solution, but I found nothing.
how would I invert something like this?
pow(4, 4, 91)
. pow(4, 4, 91)
returns 74.
and I'm trying to get 4
from the number 74
I've tried using gmpy, yet no luck. (I'm probably going to get some answers that include brute force, and brute forcing is the last thing I want to do)
To clarify, I want to solve for x in the equation y = xa mod N, where y, a, and N are all known.
pow()
when you use the modulus argument, because there's no unique values that produce the result.