reset password
Author Message
aligh1979
Posts: 121
Posted 19:46 Nov 22, 2011 |

since the value of "d" can be something between 1 and P-2  , P is big then d could be so  big that  , "g to the power of d  mod  p "can not be calculated in computer directly . so do you want  us to just pick something small for value of d   ourself , or figure out a way for java to calculate this?

aligh1979
Posts: 121
Posted 20:11 Nov 22, 2011 |

I found it myself , we need to use  big integer 

modPow(BigInteger exponent, BigInteger m)