You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
(13) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: Simon F. <sim...@us...> - 2005-03-17 05:01:59
|
Update of /cvsroot/jcrypt/JCrypt/cs199mbc/GUI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24488/cs199mbc/GUI Modified Files: frmHelp.java frmMain.java Log Message: Added dialog starters to all caught exceptions Index: frmMain.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/GUI/frmMain.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** frmMain.java 16 Mar 2005 06:57:47 -0000 1.5 --- frmMain.java 17 Mar 2005 05:01:48 -0000 1.6 *************** *** 69,74 **** jbInit(); } catch (Exception exception) { ! // TODO: Turn into dialog ! exception.printStackTrace(); } } --- 69,77 ---- jbInit(); } catch (Exception exception) { ! JOptionPane ! .showMessageDialog( ! this, ! "Could not start the application! Make sure that you installed the program correctly.", ! "Fatal Error", JOptionPane.ERROR_MESSAGE); } } Index: frmHelp.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/GUI/frmHelp.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** frmHelp.java 17 Mar 2005 04:48:48 -0000 1.3 --- frmHelp.java 17 Mar 2005 05:01:47 -0000 1.4 *************** *** 45,50 **** this.setVisible(true); } catch (Exception exception) { ! // TODO: Turn into dialog ! exception.printStackTrace(); } } --- 45,51 ---- this.setVisible(true); } catch (Exception exception) { ! JOptionPane.showMessageDialog(this, ! "Problem displaying help! Contact the developer.", ! "Fatal Error", JOptionPane.ERROR_MESSAGE); } } *************** *** 63,71 **** p.setPage(f.toURI().toURL()); } catch (FileNotFoundException e) { ! // TODO: Turn into dialog ! e.printStackTrace(); } catch (IOException e) { ! // TODO: Turn into dialog ! e.printStackTrace(); } p.setEditable(false); --- 64,78 ---- p.setPage(f.toURI().toURL()); } catch (FileNotFoundException e) { ! JOptionPane ! .showMessageDialog( ! this, ! "Could not find the help file! Make sure that you installed the program correctly.", ! "Fatal Error", JOptionPane.ERROR_MESSAGE); } catch (IOException e) { ! JOptionPane ! .showMessageDialog( ! this, ! "Problem opening the help file! Make sure that you installed the program correctly.", ! "Fatal Error (PEBKAC)", JOptionPane.ERROR_MESSAGE); } p.setEditable(false); *************** *** 100,105 **** p.repaint(); } catch (IOException e1) { ! // TODO: Turn into dialog ! e1.printStackTrace(); } } --- 107,115 ---- p.repaint(); } catch (IOException e1) { ! JOptionPane ! .showMessageDialog( ! this, ! "Could not find the help file! Make sure that you installed the program correctly.", ! "Fatal Error", JOptionPane.ERROR_MESSAGE); } } *************** *** 114,119 **** p.validate(); } catch (IOException e1) { ! // TODO: Turn into dialog ! e1.printStackTrace(); } } --- 124,132 ---- p.validate(); } catch (IOException e1) { ! JOptionPane ! .showMessageDialog( ! this, ! "Could not find the help file! Make sure that you installed the program correctly.", ! "Fatal Error", JOptionPane.ERROR_MESSAGE); } } *************** *** 129,134 **** e1.printStackTrace(); } catch (IOException e1) { ! // TODO: Turn into dialog ! e1.printStackTrace(); } } --- 142,150 ---- e1.printStackTrace(); } catch (IOException e1) { ! JOptionPane ! .showMessageDialog( ! this, ! "Could not find the help file! Make sure that you installed the program correctly.", ! "Fatal Error", JOptionPane.ERROR_MESSAGE); } } *************** *** 163,168 **** pane.setPage(e.getURL()); } catch (Throwable t) { ! // TODO: Turn into dialog ! t.printStackTrace(); } } --- 179,187 ---- pane.setPage(e.getURL()); } catch (Throwable t) { ! JOptionPane ! .showMessageDialog( ! null, ! "Could not find the help file! Make sure that you installed the program correctly.", ! "Fatal Error", JOptionPane.ERROR_MESSAGE); } } |
From: Simon F. <sim...@us...> - 2005-03-17 05:01:59
|
Update of /cvsroot/jcrypt/JCrypt/cs199mbc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24488/cs199mbc Modified Files: JCryptMain.java CryptReflector.java Log Message: Added dialog starters to all caught exceptions Index: CryptReflector.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/CryptReflector.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** CryptReflector.java 16 Mar 2005 07:46:17 -0000 1.4 --- CryptReflector.java 17 Mar 2005 05:01:46 -0000 1.5 *************** *** 275,280 **** myMachine = (CryptPlugin) cl.newInstance(); } catch (Exception e) { ! // TODO: Turn into dialog ! e.printStackTrace(); return; } --- 275,283 ---- myMachine = (CryptPlugin) cl.newInstance(); } catch (Exception e) { ! JOptionPane ! .showMessageDialog( ! frm, ! "There was a problem starting the plugin. Please contact the developer.", ! "Fatal Error", JOptionPane.ERROR_MESSAGE); return; } Index: JCryptMain.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/JCryptMain.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** JCryptMain.java 15 Mar 2005 00:27:57 -0000 1.2 --- JCryptMain.java 17 Mar 2005 05:01:45 -0000 1.3 *************** *** 42,47 **** .getSystemLookAndFeelClassName()); } catch (Exception exception) { ! // TODO: Turn into dialog ! exception.printStackTrace(); } --- 42,51 ---- .getSystemLookAndFeelClassName()); } catch (Exception exception) { ! JOptionPane ! .showMessageDialog( ! null, ! "Could not start the application! Make sure that you installed the program correctly.", ! "Fatal Error (PEBKAC)", ! JOptionPane.ERROR_MESSAGE); } |
From: Simon F. <sim...@us...> - 2005-03-17 04:49:15
|
Update of /cvsroot/jcrypt/JCrypt/cs199mbc/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22340/cs199mbc/plugins Modified Files: Playfair.java NGramFinder.java DotProduct.java FreqCount.java TextSplitter.java RealPlayfair.java EnigmaUpdated.java WhitespaceEliminator.java AmericanEnglishLang.java Log Message: Added copyright statements Index: EnigmaUpdated.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/plugins/EnigmaUpdated.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** EnigmaUpdated.java 11 Mar 2005 04:31:26 -0000 1.1 --- EnigmaUpdated.java 17 Mar 2005 04:48:47 -0000 1.2 *************** *** 1,2 **** --- 1,21 ---- + /* + EnigmaUpdated Class + Copyright (C) 2005 Steven Crowley, Sarah O'Berry, and Silas Snider + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + package cs199mbc.plugins; Index: FreqCount.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/plugins/FreqCount.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** FreqCount.java 16 Mar 2005 06:57:45 -0000 1.3 --- FreqCount.java 17 Mar 2005 04:48:47 -0000 1.4 *************** *** 1,5 **** /* FreqCount Class ! Copyright (C) 2005 Silas Snider This program is free software; you can redistribute it and/or --- 1,5 ---- /* FreqCount Class ! Copyright (C) 2005 Steven Crowley, Sarah O'Berry, and Silas Snider This program is free software; you can redistribute it and/or Index: Playfair.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/plugins/Playfair.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Playfair.java 14 Mar 2005 23:22:34 -0000 1.2 --- Playfair.java 17 Mar 2005 04:48:46 -0000 1.3 *************** *** 1,4 **** /* ! ${type_name} Class Copyright (C) 2005 Steven Crowley, Sarah O'Berry, and Silas Snider --- 1,4 ---- /* ! Playfair Class Copyright (C) 2005 Steven Crowley, Sarah O'Berry, and Silas Snider Index: TextSplitter.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/plugins/TextSplitter.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TextSplitter.java 15 Mar 2005 00:27:59 -0000 1.1 --- TextSplitter.java 17 Mar 2005 04:48:47 -0000 1.2 *************** *** 1,5 **** /* TextSplitter Class ! Copyright (C) 2005 Silas Snider This program is free software; you can redistribute it and/or --- 1,5 ---- /* TextSplitter Class ! Copyright (C) 2005 Steven Crowley, Sarah O'Berry, and Silas Snider This program is free software; you can redistribute it and/or Index: DotProduct.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/plugins/DotProduct.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DotProduct.java 16 Mar 2005 07:45:22 -0000 1.1 --- DotProduct.java 17 Mar 2005 04:48:46 -0000 1.2 *************** *** 1,5 **** /* DotProduct Class ! Copyright (C) 2005 Silas Snider This program is free software; you can redistribute it and/or --- 1,5 ---- /* DotProduct Class ! Copyright (C) 2005 Steven Crowley, Sarah O'Berry, and Silas Snider This program is free software; you can redistribute it and/or Index: AmericanEnglishLang.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/plugins/AmericanEnglishLang.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AmericanEnglishLang.java 16 Mar 2005 07:45:22 -0000 1.1 --- AmericanEnglishLang.java 17 Mar 2005 04:48:47 -0000 1.2 *************** *** 1,2 **** --- 1,21 ---- + /* + AmericanEnglishLang Class + Copyright (C) 2005 Steven Crowley, Sarah O'Berry, and Silas Snider + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + package cs199mbc.plugins; Index: NGramFinder.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/plugins/NGramFinder.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** NGramFinder.java 16 Mar 2005 06:57:45 -0000 1.1 --- NGramFinder.java 17 Mar 2005 04:48:46 -0000 1.2 *************** *** 1,5 **** /* NGramFinder Class ! Copyright (C) 2005 Silas Snider This program is free software; you can redistribute it and/or --- 1,5 ---- /* NGramFinder Class ! Copyright (C) 2005 Steven Crowley, Sarah O'Berry, and Silas Snider This program is free software; you can redistribute it and/or Index: WhitespaceEliminator.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/plugins/WhitespaceEliminator.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** WhitespaceEliminator.java 16 Mar 2005 05:21:08 -0000 1.1 --- WhitespaceEliminator.java 17 Mar 2005 04:48:47 -0000 1.2 *************** *** 1,5 **** /* WhitespaceEliminator Class ! Copyright (C) 2005 Silas Snider This program is free software; you can redistribute it and/or --- 1,5 ---- /* WhitespaceEliminator Class ! Copyright (C) 2005 Steven Crowley, Sarah O'Berry, and Silas Snider This program is free software; you can redistribute it and/or *************** *** 24,31 **** public static final String toName = "WhitespaceEliminator", toString = "Whitespace Eliminator"; - /* - public void setOptionDummy(String s) { ! }*/ public String transform(String inp) { --- 24,32 ---- public static final String toName = "WhitespaceEliminator", toString = "Whitespace Eliminator"; ! /* ! * public void setOptionDummy(String s) { ! * } ! */ public String transform(String inp) { Index: RealPlayfair.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/plugins/RealPlayfair.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RealPlayfair.java 17 Mar 2005 00:09:52 -0000 1.1 --- RealPlayfair.java 17 Mar 2005 04:48:47 -0000 1.2 *************** *** 1,5 **** /* RealPlayfair Class ! Copyright (C) 2005 Silas Snider This program is free software; you can redistribute it and/or --- 1,5 ---- /* RealPlayfair Class ! Copyright (C) 2005 Steven Crowley, Sarah O'Berry, and Silas Snider This program is free software; you can redistribute it and/or |
From: Simon F. <sim...@us...> - 2005-03-17 04:49:13
|
Update of /cvsroot/jcrypt/JCrypt/cs199mbc/GUI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22340/cs199mbc/GUI Modified Files: frmHelp.java JCrypt.java Log Message: Added copyright statements Index: JCrypt.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/GUI/JCrypt.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JCrypt.java 11 Mar 2005 04:30:41 -0000 1.1 --- JCrypt.java 17 Mar 2005 04:48:48 -0000 1.2 *************** *** 1,20 **** /* ! JCrypt Class ! Copyright (C) 2005 Steven Crowley, Sarah O'Berry, and Silas Snider ! This program is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. ! You should have received a copy of the GNU Lesser General Public ! License along with this program; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! */ package cs199mbc.GUI; --- 1,20 ---- /* ! JCrypt Class ! Copyright (C) 2005 Steven Crowley, Sarah O'Berry, and Silas Snider ! This program is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. ! You should have received a copy of the GNU Lesser General Public ! License along with this program; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! */ package cs199mbc.GUI; *************** *** 26,76 **** public class JCrypt { ! boolean packFrame = false; ! /** ! * Construct and show the application. ! */ ! public JCrypt() { ! frmMain frame = new frmMain(); ! // Validate frames that have preset sizes ! // Pack frames that have useful preferred size info, e.g. from their layout ! if (packFrame) { ! frame.pack(); ! } else { ! frame.validate(); ! } ! // Center the window ! Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); ! Dimension frameSize = frame.getSize(); ! if (frameSize.height > screenSize.height) { ! frameSize.height = screenSize.height; ! } ! if (frameSize.width > screenSize.width) { ! frameSize.width = screenSize.width; ! } ! frame.setLocation((screenSize.width - frameSize.width) / 2, ! (screenSize.height - frameSize.height) / 2); ! frame.setVisible(true); ! } ! /** ! * Application entry point. ! * ! * @param args String[] ! */ ! public static void main(String[] args) { ! SwingUtilities.invokeLater(new Runnable() { ! public void run() { ! try { ! UIManager.setLookAndFeel(UIManager. ! getSystemLookAndFeelClassName()); ! } catch (Exception exception) { ! exception.printStackTrace(); ! } ! new JCrypt(); ! } ! }); ! } } \ No newline at end of file --- 26,78 ---- public class JCrypt { ! boolean packFrame = false; ! /** ! * Construct and show the application. ! */ ! public JCrypt() { ! frmMain frame = new frmMain(); ! // Validate frames that have preset sizes ! // Pack frames that have useful preferred size info, e.g. from their ! // layout ! if (packFrame) { ! frame.pack(); ! } else { ! frame.validate(); ! } ! // Center the window ! Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); ! Dimension frameSize = frame.getSize(); ! if (frameSize.height > screenSize.height) { ! frameSize.height = screenSize.height; ! } ! if (frameSize.width > screenSize.width) { ! frameSize.width = screenSize.width; ! } ! frame.setLocation((screenSize.width - frameSize.width) / 2, ! (screenSize.height - frameSize.height) / 2); ! frame.setVisible(true); ! } ! /** ! * Application entry point. ! * ! * @param args ! * String[] ! */ ! public static void main(String[] args) { ! SwingUtilities.invokeLater(new Runnable() { ! public void run() { ! try { ! UIManager.setLookAndFeel(UIManager ! .getSystemLookAndFeelClassName()); ! } catch (Exception exception) { ! exception.printStackTrace(); ! } ! new JCrypt(); ! } ! }); ! } } \ No newline at end of file Index: frmHelp.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/GUI/frmHelp.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** frmHelp.java 15 Mar 2005 00:27:59 -0000 1.2 --- frmHelp.java 17 Mar 2005 04:48:48 -0000 1.3 *************** *** 1,5 **** /* frmHelp Class ! Copyright (C) 2005 Silas Snider This program is free software; you can redistribute it and/or --- 1,5 ---- /* frmHelp Class ! Copyright (C) 2005 Steven Crowley, Sarah O'Berry, and Silas Snider This program is free software; you can redistribute it and/or |
From: Simon F. <sim...@us...> - 2005-03-17 02:47:47
|
Update of /cvsroot/jcrypt/JCrypt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32046 Modified Files: helpIndex.htm Added Files: helpMain.html helpInform.html helpTransform.html helpMach.html helpDev.html Log Message: Added help --- NEW FILE: helpInform.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <center><h1>JCrypt Help: Informational Plugins</h1></center> <p>Informational plugins exist to display information about the input. There are three official informational plugins: Frequency Count, N-Gram Finder, and Dot Product.</p> <p><strong>Frequency Count</strong>: This plugin counts the frequencies of the letters in your input</p> <p><strong>N-Gram Finder</strong>: Finds all the N-Grams and their positions</p> <p><strong>Dot Product</strong>: Tells you how much this Caesar shift cipher was shifted.</p> </body> </html> --- NEW FILE: helpTransform.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <h1 align="center">JCrypt Help: The Transformational Plugins</h1> <p align="left">The transformational plugins directly change the text in the input pane. There are three standard plugins: Whitespace Eliminator, Text Splitter, and Simple Base Number Encipherer.</p> <p align="left"><strong>Whitespace Eliminator</strong>: This plugin just removes all spaces and newlines from your input.</p> <p align="left"><strong>Text Splitter</strong>: This plugin splits the input into the number of pieces you choose.</p> <p align="left"><strong>Simple Base Number Encipherer</strong>: This plugin turns your text into a number in the base you provide, or turns a number in a specified base back into text. </p> </body> </html> --- NEW FILE: helpMain.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <div align="center"> <h1>JCrypt Help: The Main Screen</h1> <p align="left">The Main screen is divided into two areas. The areas are seperated by a bar that can be dragged to adjust the sizes of the areas. The top area can be typed into, and is called the <em>input pane</em>. The bottom area cannot be edited, and is called the <em>output pane</em>.</p> <p align="left">The Main screen also has a menu bar. The File menu allows you to load and save text files into the input pane. The Tools menu lets you do things to the text in the input pane, and the Help menu gets you here. </p> </div> </body> </html> --- NEW FILE: helpDev.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> To contact the developer, email me at sws...@gm.... </body> </html> Index: helpIndex.htm =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/helpIndex.htm,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** helpIndex.htm 14 Mar 2005 23:22:33 -0000 1.1 --- helpIndex.htm 17 Mar 2005 02:47:31 -0000 1.2 *************** *** 1,8 **** <HTML> <HEAD> ! <!-- <BASE HREF="file:///C:/eclipse/workspace/JCrypt/"> --> ! </HEAD <BODY> ! <H1><A HREF="helpIndex2.htm">HELLO</a></H1> </BODY> </HTML> \ No newline at end of file --- 1,16 ---- <HTML> <HEAD> ! <title>JCrypt Help</title> ! </HEAD> <BODY> ! ! <h1 align="center">Welcome to the JCrypt Help System</h1> ! <ul> ! <li><a href="helpMain.html">Need Help on the Main Interface?</a></li> ! <li><a href="helpTransform.html">The Transformational plugins?</a></li> ! <li><a href="helpInform.html">The Informational plugins?</a></li> ! <li><a href="helpMach.html">The Machine plugins?</a></li> ! <li><a href="helpDev.html">Or contacting the developer?</a></li> ! </ul> </BODY> </HTML> \ No newline at end of file --- NEW FILE: helpMach.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <h1 align="center">JCrypt Help: Machine Plugins</h1> <p align="left">Machine plugins simulate cipher machines. They output to the output pane. There are three standard machines: Enigma, Caesar, and Playfair</p> <p align="left"><strong>Enigma</strong>: Simulates the paper enigma</p> <p align="left"><strong>Caesar</strong>: Simulates Caesar's shifting cipher. Also helpful in breaking Vigenere.</p> <p align="left"><strong>Playfair</strong>: Simulates the playfair transposition cipher so you don't have to. </p> </body> </html> |
From: Simon F. <sim...@us...> - 2005-03-17 00:13:58
|
Update of /cvsroot/jcrypt/JCrypt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv550 Modified Files: .classpath .project Log Message: removed extraneous dependencies Index: .project =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/.project,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** .project 11 Mar 2005 04:31:25 -0000 1.1 --- .project 17 Mar 2005 00:13:46 -0000 1.2 *************** *** 4,9 **** <comment></comment> <projects> - <project>Commons-Lang</project> - <project>JakartaCollections</project> </projects> <buildSpec> --- 4,7 ---- Index: .classpath =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/.classpath,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** .classpath 11 Mar 2005 04:31:25 -0000 1.1 --- .classpath 17 Mar 2005 00:13:46 -0000 1.2 *************** *** 3,8 **** <classpathentry kind="src" path=""/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> - <classpathentry kind="lib" path="C:/eclipse/workspace/Commons-Lang/commons-lang-2.0-src/commons-lang-2.0.jar"/> - <classpathentry sourcepath="/JakartaCollections/src/java" kind="lib" path="/JakartaCollections/build/commons-collections-3.2-dev.jar"/> <classpathentry kind="output" path=""/> </classpath> --- 3,6 ---- |
From: Simon F. <sim...@us...> - 2005-03-17 00:11:57
|
Update of /cvsroot/jcrypt/JCrypt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32506 Modified Files: machPlugins.conf Log Message: edited machPlugins.conf Index: machPlugins.conf =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/machPlugins.conf,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** machPlugins.conf 16 Mar 2005 07:44:22 -0000 1.3 --- machPlugins.conf 17 Mar 2005 00:11:48 -0000 1.4 *************** *** 1,3 **** ! 2 cs199mbc.plugins.EnigmaUpdated ! cs199mbc.plugins.Caesar \ No newline at end of file --- 1,4 ---- ! 3 cs199mbc.plugins.EnigmaUpdated ! cs199mbc.plugins.Caesar ! cs199mbc.plugins.RealPlayfair \ No newline at end of file |
From: Simon F. <sim...@us...> - 2005-03-17 00:10:04
|
Update of /cvsroot/jcrypt/JCrypt/cs199mbc/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31974/cs199mbc/plugins Added Files: RealPlayfair.java Log Message: More Plugins!!! --- NEW FILE: RealPlayfair.java --- /* RealPlayfair Class Copyright (C) 2005 Silas Snider This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package cs199mbc.plugins; import cs199mbc.Machine; public class RealPlayfair implements Machine { private boolean encoder = false; public static final String toName = "Playfair", toString = "Playfair"; private char[][] square = new char[5][5]; private String alpha = "ABCDEFGHIKLMNOPQRSTUVWXYZ"; public String encode(String text) { boolean t = encoder; encoder = true; String temp = doStuff(text); encoder = t; return temp; } public String decode(String text) { boolean t = encoder; encoder = false; String temp = doStuff(text); encoder = t; return temp; } public void setOptionKeyword(String s) { s = s.toUpperCase(); s = s.replace('J', 'I'); int realLength = 0; for (int i = 0; i < s.length(); i++) { // Writes the keyword across the // top if (s.indexOf(s.charAt(i)) == i) { realLength++; square[i % 5][i / 5] = s.charAt(i); } } int j = 0; for (int i = realLength; i < 25; i++) { j++; if (s.indexOf(alpha.charAt(j)) != -1) { i--; } else { square[i % 5][i / 5] = alpha.charAt(j); } } for (int i = 0; i < 5; i++) { for (int k = 0; k < 5; k++) { System.out.print(square[k][i]); } System.out.println(""); } } public void setOptionEncode(boolean b) { encoder = b; } private int findLetterIndex(char c) { int ret = -1; if (c == 'J') c = 'I'; for (int i = 0; i < 25; i++) { if (square[i % 5][i / 5] == c) { ret = i; } } return ret; } private String elimWhite(String inp) { StringBuffer ret = new StringBuffer(); for (int i = 0; i < inp.length(); i++) { if (Character.isWhitespace(inp.charAt(i))) { continue; } ret.append(inp.charAt(i)); } return ret.toString(); } public String doStuff(String s) { StringBuffer result = new StringBuffer(); if (encoder) { s = elimWhite(s); s = s.toUpperCase(); if ((s.length() % 2) != 0) { s = s + "X"; } String digram; for (int i = 1; i < s.length(); i += 2) { if (s.charAt(i - 1) == s.charAt(i)) { if (s.charAt(i - 1) == 'X') { digram = s.charAt(i - 1) + "Q"; } else { digram = s.charAt(i - 1) + "X"; } i--; } else { digram = ("" + s.charAt(i - 1)) + s.charAt(i); } int[] ind = findDigramIndices(digram); char[] ret = new char[2]; if ((ind[0] / 5) == (ind[1] / 5)) { if ((ind[0] % 5) == 4) { ind[0] = ind[0] - 4; } else { ind[0]++; } if ((ind[1] % 5) == 4) { ind[1] = ind[1] - 4; } else { ind[1]++; } ret[0] = square[ind[0] % 5][ind[0] / 5]; ret[1] = square[ind[1] % 5][ind[1] / 5]; } else if ((ind[0] % 5) == (ind[1] % 5)) { ind[0] = (ind[0] + 5) % 25; ind[1] = (ind[1] + 5) % 25; ret[0] = square[ind[0] % 5][ind[0] / 5]; ret[1] = square[ind[1] % 5][ind[1] / 5]; } else { ret[0] = square[ind[0] % 5][ind[1] / 5]; ret[1] = square[ind[1] % 5][ind[0] / 5]; } result.append(ret[0]); result.append(ret[1]); result.append(" "); } } else { s = elimWhite(s); s = s.toUpperCase(); if ((s.length() % 2) != 0) { s = s + "X"; } String digram; for (int i = 1; i < s.length(); i += 2) { if (s.charAt(i - 1) == s.charAt(i)) { if (s.charAt(i - 1) == 'X') { digram = s.charAt(i - 1) + "Q"; } else { digram = s.charAt(i - 1) + "X"; } i--; } else { digram = ("" + s.charAt(i - 1)) + s.charAt(i); } int[] ind = findDigramIndices(digram); char[] ret = new char[2]; if ((ind[0] / 5) == (ind[1] / 5)) { if ((ind[0] % 5) == 0) { ind[0] = ind[0] + 4; } else { ind[0]--; } if ((ind[1] % 5) == 0) { ind[1] = ind[1] + 4; } else { ind[1]--; } ret[0] = square[ind[0] % 5][ind[0] / 5]; ret[1] = square[ind[1] % 5][ind[1] / 5]; } else if ((ind[0] % 5) == (ind[1] % 5)) { if ((ind[0] - 5) < 0) { ind[0] += 25; } if ((ind[1] - 5) < 0) { ind[1] += 25; } ind[0] = (ind[0] - 5) % 25; ind[1] = (ind[1] - 5) % 25; ret[0] = square[ind[0] % 5][ind[0] / 5]; ret[1] = square[ind[1] % 5][ind[1] / 5]; } else { ret[0] = square[ind[0] % 5][ind[1] / 5]; ret[1] = square[ind[1] % 5][ind[0] / 5]; } result.append(ret[0]); result.append(ret[1]); result.append(" "); } } return result.toString(); } private int[] findDigramIndices(String digram) { int[] ret = new int[2]; ret[0] = findLetterIndex(digram.charAt(0)); ret[1] = findLetterIndex(digram.charAt(1)); return ret; } } |
From: Simon F. <sim...@us...> - 2005-03-16 07:46:34
|
Update of /cvsroot/jcrypt/JCrypt/cs199mbc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2003/cs199mbc Modified Files: CryptReflector.java Log Message: adding dot product plugin/removing playfair Index: CryptReflector.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/CryptReflector.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CryptReflector.java 16 Mar 2005 05:21:09 -0000 1.3 --- CryptReflector.java 16 Mar 2005 07:46:17 -0000 1.4 *************** *** 132,135 **** --- 132,136 ---- "There was a problem starting the machine.", "Fatal Error", JOptionPane.ERROR_MESSAGE); + e.printStackTrace(); } } |
From: Simon F. <sim...@us...> - 2005-03-16 07:45:32
|
Update of /cvsroot/jcrypt/JCrypt/cs199mbc/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1832 Added Files: AmericanEnglishLang.java DotProduct.java Log Message: adding dot product plugin/removing playfair --- NEW FILE: AmericanEnglishLang.java --- package cs199mbc.plugins; public class AmericanEnglishLang { public int fromTotal() { return 440354; } public int[] getFreqs() { return m; } public String toString() { return "American English"; } public AmericanEnglishLang() { m = new int[26]; m[0] = 33802; m[1] = 8884; m[2] = 10967; m[3] = 19540; m[4] = 53910; m[5] = 9082; m[6] = 9915; m[7] = 27244; m[8] = 28654; m[9] = 886; m[10] = 5061; m[11] = 18156; m[12] = 10750; m[13] = 29801; m[14] = 35860; m[15] = 7155; m[16] = 330; m[17] = 24467; m[18] = 24817; m[19] = 41429; m[20] = 14335; m[21] = 3397; m[22] = 11448; m[23] = 745; m[24] = 9452; m[25] = 267; } private int[] m; } --- NEW FILE: DotProduct.java --- /* DotProduct Class Copyright (C) 2005 Silas Snider This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package cs199mbc.plugins; import java.util.*; import cs199mbc.Informer; public class DotProduct implements Informer { public static final String toName = "DotProduct", toString = "Dot Product"; private String text; private int[] alphaCounts = new int[26]; private String alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; public DotProduct() { Arrays.fill(alphaCounts, 0); } public String getInfo(String inp) { return doStuff(inp); } public String doStuff(String s) { int temp = -1; s = s.toUpperCase(); for (int i = 0; i < s.length(); i++) { if ((temp = alpha.indexOf(s.charAt(i))) != -1) { alphaCounts[temp]++; } } int[] l = new AmericanEnglishLang().getFreqs(); int prd; int[] prods = new int[26]; for (int i = 0; i < 26; i++) { l = shift(l); prd = 0; for (int j = 0; j < 26; j++) { prd += (alphaCounts[j] * l[j]); } prods[i] = prd; } int max = 0; for (int i = 0; i < 26; i++) { if (prods[i] > prods[max]) { max = i; } } StringBuffer f = new StringBuffer(); f.append("Dot Product"); f.append("Best fit is: "); f.append(alpha.charAt(max)); f.append("\n"); for (int i = 0; i < 26; i++) { f.append("Shifted by "); f.append(alpha.charAt(i)); f.append(": "); f.append(prods[i]); f.append("\n"); } return f.toString(); } private int[] shift(int[] l) { int hld = l[l.length - 1]; for (int i = (l.length - 2); i > -1; i--) { l[i + 1] = l[i]; } l[0] = hld; return l; } } |
From: Simon F. <sim...@us...> - 2005-03-16 07:44:33
|
Update of /cvsroot/jcrypt/JCrypt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1613 Modified Files: infoPlugins.conf machPlugins.conf transPlugins.conf Log Message: adding dot product plugin/removing playfair Index: machPlugins.conf =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/machPlugins.conf,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** machPlugins.conf 14 Mar 2005 23:22:33 -0000 1.2 --- machPlugins.conf 16 Mar 2005 07:44:22 -0000 1.3 *************** *** 1,5 **** ! 4 cs199mbc.plugins.EnigmaUpdated ! cs199mbc.plugins.SimpleBaseNumberEncipher ! cs199mbc.plugins.Caesar ! cs199mbc.plugins.Playfair \ No newline at end of file --- 1,3 ---- ! 2 cs199mbc.plugins.EnigmaUpdated ! cs199mbc.plugins.Caesar \ No newline at end of file Index: infoPlugins.conf =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/infoPlugins.conf,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** infoPlugins.conf 16 Mar 2005 05:31:21 -0000 1.2 --- infoPlugins.conf 16 Mar 2005 07:44:22 -0000 1.3 *************** *** 1,2 **** ! 1 ! cs199mbc.plugins.FreqCount \ No newline at end of file --- 1,4 ---- ! 3 ! cs199mbc.plugins.FreqCount ! cs199mbc.plugins.NGramFinder ! cs199mbc.plugins.DotProduct \ No newline at end of file Index: transPlugins.conf =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/transPlugins.conf,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** transPlugins.conf 16 Mar 2005 05:24:45 -0000 1.2 --- transPlugins.conf 16 Mar 2005 07:44:22 -0000 1.3 *************** *** 1,3 **** ! 2 cs199mbc.plugins.TextSplitter cs199mbc.plugins.WhitespaceEliminator --- 1,4 ---- ! 3 cs199mbc.plugins.TextSplitter cs199mbc.plugins.WhitespaceEliminator + cs199mbc.plugins.SimpleBaseNumberEncipher |
From: Simon F. <sim...@us...> - 2005-03-16 06:58:02
|
Update of /cvsroot/jcrypt/JCrypt/cs199mbc/GUI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24539/cs199mbc/GUI Modified Files: frmMain.java Log Message: Added N-Gram plugin Index: frmMain.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/GUI/frmMain.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** frmMain.java 16 Mar 2005 05:21:10 -0000 1.4 --- frmMain.java 16 Mar 2005 06:57:47 -0000 1.5 *************** *** 103,107 **** .addActionListener(new frmMain_jMenuHelpContents_ActionAdapter( this)); ! jToolBar1.setOrientation(JToolBar.VERTICAL); JButton temp; mnuFileLoad.setText("Load..."); --- 103,107 ---- .addActionListener(new frmMain_jMenuHelpContents_ActionAdapter( this)); ! jToolBar1.setOrientation(JToolBar.HORIZONTAL); JButton temp; mnuFileLoad.setText("Load..."); |
From: Simon F. <sim...@us...> - 2005-03-16 06:58:02
|
Update of /cvsroot/jcrypt/JCrypt/cs199mbc/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24539/cs199mbc/plugins Modified Files: FreqCount.java SimpleBaseNumberEncipher.java Added Files: NGramFinder.java Log Message: Added N-Gram plugin Index: SimpleBaseNumberEncipher.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/plugins/SimpleBaseNumberEncipher.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SimpleBaseNumberEncipher.java 11 Mar 2005 04:31:26 -0000 1.1 --- SimpleBaseNumberEncipher.java 16 Mar 2005 06:57:45 -0000 1.2 *************** *** 21,25 **** import cs199mbc.*; ! public class SimpleBaseNumberEncipher implements Machine { private String alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ "; private int baseNumber = 2; --- 21,25 ---- import cs199mbc.*; ! public class SimpleBaseNumberEncipher implements Transformer { private String alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ "; private int baseNumber = 2; *************** *** 111,113 **** --- 111,117 ---- } } + + public String transform(String inp) { + return doStuff(inp); + } } --- NEW FILE: NGramFinder.java --- /* NGramFinder Class Copyright (C) 2005 Silas Snider This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package cs199mbc.plugins; import java.util.*; import java.util.HashMap; import cs199mbc.Informer; public class NGramFinder implements Informer { public static final String toName = "NGramFinder", toString = "N-Gram Finder"; private int n; private HashMap m = new HashMap(); public String getInfo(String inp) { return doStuff(inp); } public void setOptionN(int n) { this.n = n; } public String doStuff(String s) { StringBuffer ret = new StringBuffer(); for (int i = 0; i < s.length(); i++) { if (Character.isWhitespace(s.charAt(i))) { continue; } ret.append(s.charAt(i)); } String temp; LinkedList myList; for (int i = 0; i < (ret.length() - n + 1); i++) { temp = ret.substring(i, i + n); if ((myList = (LinkedList) m.get(temp)) != null) { myList.add(new Integer(i)); } else { myList = new LinkedList(); myList.add(new Integer(i)); m.put(temp, myList); } } Map.Entry e; ret = new StringBuffer(); ret.append(n); ret.append("-Grams:\n"); for (Iterator i = m.entrySet().iterator(); i.hasNext();) { e = (Map.Entry) i.next(); myList = (LinkedList) e.getValue(); if (myList.size() > 1) { ret.append((String) e.getKey()); ret.append(": "); for (Iterator j = myList.iterator(); j.hasNext();) { int y = ((Integer) j.next()).intValue(); ret.append(y); ret.append(" "); } ret.append("\n"); } } return ret.toString(); } } Index: FreqCount.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/plugins/FreqCount.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FreqCount.java 16 Mar 2005 05:21:07 -0000 1.2 --- FreqCount.java 16 Mar 2005 06:57:45 -0000 1.3 *************** *** 54,58 **** } } - System.out.println(getInfo(s)); return getInfo(s); } --- 54,57 ---- |