Program: Rsa.java  (follow link to view applet and code)
Author: Cory Goldfuss  
Date: November 05, 2000 Program last modified: November 13, 2000
Description: Performs RSA encryption and decryption
Components: Buttons, Radio Buttons, ActionListener, ItemListener, TextArea, Labels.
New Concepts: Using the Math.pow(x,y) function. Planning on using List to provide a preset list of A-Z characters in order for encryption.

November 12: Implemented code to perform Math.pow and the finding of D. This gets around the rounding error caused when large primes are used. Also I decided to use radio buttions to "clean up" the GUI.
Reflections: Right now program is not functioning correcty. The basic idea is for the user to input two primes, some type of message to encrypt (numerical) and another prime number that will be used as the exponent. The program then performs RSA encryption on the entered message T. This is done by taking T and raising it to the E and then taking this answer mod N (where N is P * Q). As of now this part functions correctly assuming the inputed E is not too large. I have yet to get the decryption working.

November 12: Program now works correctly. I have tested many primes and have found that they all work. Of course the higher one goes the longer the applet will "think" before presenting the answer (using 2003, 4001, 1003, and 100000 for p, q, e, t respectively presented this "thinking"). I now plan on adding more features (ability to choose between encrypt or decrypt and others) and redoing the GUI before calling the program finished.

November 13:Finished the new GUI and added feature to choose between encrypt and decrypt through use of radio buttons.
Evaluation: Please provide an evaluation of this portfolio entry.


G-fuss
Last modified November 13, 2000.