Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Add extJWNL required BSD license
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsingh87 committed Sep 26, 2022
1 parent c66364c commit f24531e
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.class
bin
18 changes: 4 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Frequency Analysis Simulator
**Start Date**: July 22, 2019
**Start Date for Part 1: Monoalphabetic Ciphers**: July 22, 2019
**Start Date for Part 2: Vigenere Ciphers**: September 26, 2022

Frequency Analysis Simulator is a Java program that simulates frequency analysis in which the user inputs cipher text into the console and the System outputs as close to the corresponding plain text as possible. If the type of cipher has been identified, the process may be sped up after the user inputs the type of cipher (monoalphabetic or Vigenere) on prompt. Furthermore, Frequency Analysis Simulator can decipher the caesar shift cipher, a cipher that does not involve the use of frequency analysis for decipherment. As another added bonus, the application is able to encrypt messages.

Expand Down Expand Up @@ -70,20 +71,9 @@ Add additional notes about how to deploy this on a live system
* [WordNet](https://wordnet.princeton.edu/) - API for predefined list of words used
* [extJWNL](http://extjwnl.sourceforge.net/) - Java library imported; extension of JWNL

## Contributing

Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us.

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/KnowledgeableKangaroo/Frequency-Analysis-Simulator/tags).

## Authors

* **Billie Thompson** - *README template* - [PurpleBooth](https://github.com/PurpleBooth)
* **Varun Singh** - *Owner and Programmer* - [KnowledgeableKangaroo](https://github.com/KnowledgeableKangaroo)

See also the list of [contributors](https://github.com/KnowledgeableKangaroo/Frequency-Analysis-Simulator/contributors) who participated in this project.
* **Varun Singh** - *Owner and Programmer* - [varunsingh87](https://github.com/varunsingh87)

## License

Expand All @@ -98,7 +88,7 @@ This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md
* Stack Overflow, Inc.
* Gale

Copyright 2019 Varun Singh
Copyright 2022 Varun Singh

<script src = "../script.js"></script>

Expand Down
21 changes: 21 additions & 0 deletions lib/extjwnl/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Copyright © 2010-2022 Aliaksandr Autayeu (http://autayeu.com)
Copyright © 2000-2007 the JWNL development team (http://www.sourceforge.net/projects/jwordnet)
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided
that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the
following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of the product ("extJWNL") nor the names of its contributors may be used to endorse or promote
products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/net/sf/extjwnl/FrequencyAnalysisSimulator.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

/*
In the 34 years since the R.M.S. Titanic was discovered on the seafloor south of Newfoundland, it has become the worlds most famous shipwreck a rusting hulk assailed by hundreds of explorers and moviemakers, salvors and tourists, scientists and federal watchdogs. All agree that the once-grand ship is rapidly falling apart. Resting on the icy North Atlantic seabed more than two miles down, upright but split in two, the fragile mass is slowly succumbing to rust, corrosive salts, microbes and colonies of deep-sea creatures.
In the 34 years since the R.M.S. Titanic was discovered on the seafloor south of Newfoundland, it has become the worlds most famous shipwreck a rusting hulk assailed by hundreds of explorers and moviemakers, salvors and tourists, scientists and federal watchdogs. All agree that the once-grand ship is rapidly falling apart. Resting on the icy North Atlantic seabed more than two miles down, upright but split in two, the fragile mass is slowly succumbing to rust, corrosive salts, microbes and colonies of deep-sea creatures.
*/

/*
Expand Down Expand Up @@ -52,7 +52,7 @@ public static void main(String[] args) throws JWNLException {
else if (action.equals(ACTION.ENCRYPT))
handleEncrypt();
else if (action.equals(ACTION.MAGIC)) {
MonoalphabeticCipher c = new MonoalphabeticCipher("TQSORPID ICIDM GQGISZ, ORSTI ZJI PEBS QY BQGES, BJIS E YIGEKI EOURDIP XNZ ZQ SQ ECERK. OJI EOWIP ZQ EZZISP OTJQQK XNZ BEO PISRIP. OJI DEROIP JID JESP XNZ BEOS’Z TEKKIP QS. OJI EUUKRIP XNZ BEOS’Z JRDIP. OJI ISKROZIP XNZ BEOS’Z PIUKQMIP. OJI TDIEZIP XNZ BEOS’Z TDIPRZIP. OJI DES XNZ BEOS’Z IKITZIP. RGELRSI ZJI OEPSIOO ESP YDNOZDEZRQS QY ICIDM ONTJ RSOZESTI EO E OUEDW, ZJIRD TQGXRSIP ISIDLM ZJI ORAI QY GESM ONSO. ZJEZ RO ZJI GIEONDI QY LDRIY ESP YNDM R YIKZ DROI RSORPI GI EO R BEZTJIP IKRAEXIZJ BEDDIS’O XRP YQD ZJI PIGQTDEZRT SQGRSEZRQS BESI. BJIS JRKKEDM TKRSZQS KQOZ RS 2016, RZ JNDZ RS ORGRKED BEMO XNZ PRPS’Z ONDUDROI GI. QNZ JIDI RS ZJI DIP JRSZIDKESPO, RZ BEO UKERS ZQ OQGI QY NO ZJEZ TISZDROZ RPIEO PRP SQZ IFTRZI RS ZRGIO QY JROZQDRT RSIHNEKRZM. ZJRO IKITZRQS, ZJQNLJ, R ZJQNLJZ IKRAEXIZJ BEDDIS - E TKEOO DICQKNZRQSEDM ZQ GEZTJ ZJI GQGISZ - GRLJZ LQ ZQ ZJI BJRZI JQNOI. RZ ZNDSO QNZ ZJEZ OJI BQS’Z ICIS LQ ZQ ZJI LISIDEK IKITZRQS. SQB ZJI OEGI UNSPRZO BJQ RS 2016 UDQCIP ZJIM WSQB CIDM KRZZKI BRKK KROZ ZJI DIEOQSO, BRZJQNZ DIEKRARSL ZJIM’DI EGQSL ZJI DIEOQSO.");
MonoalphabeticCipher c = new MonoalphabeticCipher("TQSORPID ICIDM GQGISZ, ORSTI ZJI PEBS QY BQGES, BJIS E YIGEKI EOURDIP XNZ ZQ SQ ECERK. OJI EOWIP ZQ EZZISP OTJQQK XNZ BEO PISRIP. OJI DEROIP JID JESP XNZ BEOS�Z TEKKIP QS. OJI EUUKRIP XNZ BEOS�Z JRDIP. OJI ISKROZIP XNZ BEOS�Z PIUKQMIP. OJI TDIEZIP XNZ BEOS�Z TDIPRZIP. OJI DES XNZ BEOS�Z IKITZIP. RGELRSI ZJI OEPSIOO ESP YDNOZDEZRQS QY ICIDM ONTJ RSOZESTI EO E OUEDW, ZJIRD TQGXRSIP ISIDLM ZJI ORAI QY GESM ONSO. ZJEZ RO ZJI GIEONDI QY LDRIY ESP YNDM R YIKZ DROI RSORPI GI EO R BEZTJIP IKRAEXIZJ BEDDIS�O XRP YQD ZJI PIGQTDEZRT SQGRSEZRQS BESI. BJIS JRKKEDM TKRSZQS KQOZ RS 2016, RZ JNDZ RS ORGRKED BEMO XNZ PRPS�Z ONDUDROI GI. QNZ JIDI RS ZJI DIP JRSZIDKESPO, RZ BEO UKERS ZQ OQGI QY NO ZJEZ TISZDROZ RPIEO PRP SQZ IFTRZI RS ZRGIO QY JROZQDRT RSIHNEKRZM. ZJRO IKITZRQS, ZJQNLJ, R ZJQNLJZ IKRAEXIZJ BEDDIS - E TKEOO DICQKNZRQSEDM ZQ GEZTJ ZJI GQGISZ - GRLJZ LQ ZQ ZJI BJRZI JQNOI. RZ ZNDSO QNZ ZJEZ OJI BQS�Z ICIS LQ ZQ ZJI LISIDEK IKITZRQS. SQB ZJI OEGI UNSPRZO BJQ RS 2016 UDQCIP ZJIM WSQB CIDM KRZZKI BRKK KROZ ZJI DIEOQSO, BRZJQNZ DIEKRARSL ZJIM�DI EGQSL ZJI DIEOQSO.");
System.out.println(c.length());
System.out.println(c.decrypt());
}
Expand Down

0 comments on commit f24531e

Please sign in to comment.