Index of /Encoder

 NameLast modifiedSizeDescription

 Parent Directory  -  
 README.txt2018-01-15 07:27 2.8K 
 encoder.zip2018-01-15 07:24 5.7K 

CSC-253 Final Project — Encoder/Decoder

Henry Hedden

Description

The program prompts the user to enter text, and select from one of several different codes to use, via a GUI. The user can then choose to either encode plaintext, or decode encoded text.

Classes

Process

  1. The main method creates a window with two text areas, a combo box, and two buttons.
  2. To encode text, the user enters text in the top text area, selects a cipher from the combo box, and clicks the “encode” button.
  3. The click event handler reads the value from the combo box to determine which cipher to use, and passes the text from the input text area to the appropriate encode method in the Encoder class. The encoded text is displayed in the second text area.
  4. To decode text, the user enters encoded text in the input text area, selects the appropriate cipher from the combo box, and clicks the “decode” button.
  5. The click event handler then reads the value from the input text area, and passes the text to the appropriate decode method in the Encoder class.
  6. If the user attempts to encode or decode text using the Vigenère cipher, they will be prompted by a JOptionPane to enter a key word.
  7. If a user action results in an error, the user will be notified with an error message displayed by a JOptionPane.