Big Integers in JavaScript


This page performs RSA in any base. In base 95, the message can be ordinary text. Click all the buttons in order to perform all the steps of RSA key generation, encryption, and decryption. Or just click the DO EVERYTHING button.

Time (sec)
  Display numbers in:  
  The plaintext message: m=  
  The public exponent: e=  
  p, q: bits each p=
  q=
  n=
  phi=
  d=
  c=
  m'=
  m''=
      m'' uses secret p and q to be faster.
P=c^d mod p
Q=c^d mod q
m''=((Q-P)*(p^-1) mod q)*p+P
 
         

(c) 2000-2009 Leemon Baird