Information on Mathematics
For all of my life I have struggled with Mathematics. In fact, in school they told me I had a "math disability". Turns out that "math disability" was actually just autism that they failed to diagnose. I went undiagnosed until I was 26 years old and already in my first full time professional job. I've decided now that I am nearly 38 years old, it's time to finally try my hand at mathematics with a new understanding of how my brain works and to work with myself. I'm starting from almost nothing. I would have posted this in the mathematics but the reason I am posting here is because I would very much like to know more about the mathematics that go into some of the algorithms surrounding cryptography. Can anyone point me in the right direction? I'm doing a hacking course and we are covering RSA and Diffie-Hellman. I am reading through some of the explanations for how they work and I'm absolutely lost. I've seen the explanation for how everything works with color mixing but I'm still so curious as to how the math actually works. I can't understand how if two random numbers are chosen in a range (0 < g < p) why I couldn't also arrive at the result by selecting a random number for a and arrive at the same private key. Help!