Skip to content

Commit f24531e

Browse files
committed
Add extJWNL required BSD license
1 parent c66364c commit f24531e

14 files changed

+28
-16
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*.class
2+
bin

README.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Frequency Analysis Simulator
2-
**Start Date**: July 22, 2019
2+
**Start Date for Part 1: Monoalphabetic Ciphers**: July 22, 2019
3+
**Start Date for Part 2: Vigenere Ciphers**: September 26, 2022
34

45
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.
56

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

73-
## Contributing
74-
75-
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.
76-
77-
## Versioning
78-
79-
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).
80-
8174
## Authors
8275

83-
* **Billie Thompson** - *README template* - [PurpleBooth](https://github.com/PurpleBooth)
84-
* **Varun Singh** - *Owner and Programmer* - [KnowledgeableKangaroo](https://github.com/KnowledgeableKangaroo)
85-
86-
See also the list of [contributors](https://github.com/KnowledgeableKangaroo/Frequency-Analysis-Simulator/contributors) who participated in this project.
76+
* **Varun Singh** - *Owner and Programmer* - [varunsingh87](https://github.com/varunsingh87)
8777

8878
## License
8979

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

101-
Copyright 2019 Varun Singh
91+
Copyright 2022 Varun Singh
10292

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

lib/extjwnl/LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright © 2010-2022 Aliaksandr Autayeu (http://autayeu.com)
2+
Copyright © 2000-2007 the JWNL development team (http://www.sourceforge.net/projects/jwordnet)
3+
All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without modification, are permitted provided
6+
that the following conditions are met:
7+
8+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the
9+
following disclaimer.
10+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
11+
the following disclaimer in the documentation and/or other materials provided with the distribution.
12+
* Neither the name of the product ("extJWNL") nor the names of its contributors may be used to endorse or promote
13+
products derived from this software without specific prior written permission.
14+
15+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
16+
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
18+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
20+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
21+
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.

src/net/sf/extjwnl/FrequencyAnalysisSimulator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
/*
6-
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.
6+
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.
77
*/
88

99
/*
@@ -52,7 +52,7 @@ public static void main(String[] args) throws JWNLException {
5252
else if (action.equals(ACTION.ENCRYPT))
5353
handleEncrypt();
5454
else if (action.equals(ACTION.MAGIC)) {
55-
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.");
55+
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.");
5656
System.out.println(c.length());
5757
System.out.println(c.decrypt());
5858
}

0 commit comments

Comments
 (0)