I've looked in many places including here and can't get quite the answer... So I thought I'd post a question.
I can't grasp how $d$ is calculated. Obviously the problem is that knowing $e$ and $n$ should not allow determination of $d$ as this would render the whole thing useless.
So I'm assuming there is some efficient method that relies on knowing $p$ and $q$ to derive $d$. Or something similar.
I have followed the extended Euclidian algorithm for doing the calculation but still, it doesn't make reference to any secret values as an efficient method. Unless I've missed something.
Would appreciate some help on this.