**Associate**

B = g^b mod p

I know all the values except for b, and p is a prime number which is also known. How do I go about finding b, I can't for the life of me figure this out because of the mod operator! Reversing it just confuses me Does anyone know where I can get started to solve this one? If it helps its in relation to Diffie-Hellman key exchange methods