Gapplet

encoding and decoding by RSA scheme

Input a pair of primes p, q, e.g. [101, 103].   </COMMENT>
Input a pair of numbers v, w,  
with vw = 1 mod (p-1)(q-1), 
e.g., [23, 887] for the above values of p and q.  
</COMMENT>
Input a number x representing a message, 
e.g., 2832.  
</COMMENT>
 
encoding
</COMMENT>
 
</COMMENT>
Input a number y representing an encoded message, 
e.g., 1496.  
</COMMENT>
decoding
</COMMENT>
 
</COMMENT>