How can you be sure that (p-1)(q-1)+1 is not prime?

  • Thread starter Thread starter mtanti
  • Start date Start date
  • Tags Tags
    Prime
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
2 replies · 4K views
mtanti
Messages
172
Reaction score
0
How is it that you calculate e and d such that ed=(p-1)(q-1)+1? Isn't this a factoring problem?

How can you be sure that (p-1)(q-1)+1 is not prime?
 
Physics news on Phys.org
You're interested in ed = k(p-1)(q-1) + 1.
The whole point is that you're looking for ed = 1 (mod phi(N)).
 
In case you don't already know, the program 'PARI' on the web is nice for working with number theory and some of the algorithms of RSA in general. Anyway, I used it, in conjunction with Mathematica's 'PowerMod' to easily encrypt a paragraph using two 256-digit primes (found by PARI).

Check um' out.:smile: