Hi all...
Does anybody know how to generate a set numbers
under certain condition, and then randomly select one number from that
set?? This is related to RSA key generation.
For example:
p = 2, q = 5 ----> ?(n) = (2-1)(5-1) = 4
then Z10* = {1, 3, 7, 9}
The elements of Z10* should consist of 4 numbers (starting from 1, not 0) and should not be divisible by 4
Then, the value of w has to be randomly selected only from that set
I
am having a problem in writing the C# code for this algorithm since I
practically know nothing about C#, but my project is due in 3 weeks
. If anyone could kindly help me in this, I would be extremely
grateful.
Regards,
Sarah