This repository contains a Graphical User Interface (GUI) implementation of a text decryption system powered by a genetic algorithm. The genetic algorithm used here comes in three versions: Classic, Lamark, and Darwin.
Note:
Running the algorithm can take between 5 to 10 minutes, go grab coffee while waiting.
- Download the decryption.exe file and locate it at the same directory as the Data Files* and enc.txt which is the text you want to decrypt.
- Double click on the exe file the following screen will pop:
- Choose which algorithm to use: Classis, Darwin or Lamark.
- Click start and you will see that the decryption process has started.
- Once the program achieves the solution the solution screen will pop:
In this screen you can see what substitutions should be made to decrypt the text,the decrypted text and some statistics about the algorithm's performance (number of generations and number of fitness function calls).
The decrypted text will also be saved to plain.txt
and the dictionary solution will be saved to perm.txt
.
dict.txt
: This file contains a list of English words.Letter_Freq.txt
: This file contains the frequency of each letter in the English language.Letter2_Freq.txt
: This file contains the frequency of each bigram in the English language.