Skip to content

GuyLeib/Text_Decryption

Repository files navigation

Text Decryption GUI using Genetic Algorithm

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.

How To Use

  1. 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.
  2. Double click on the exe file the following screen will pop:
image
  1. Choose which algorithm to use: Classis, Darwin or Lamark.
image
  1. Click start and you will see that the decryption process has started.
image
  1. Once the program achieves the solution the solution screen will pop:
image

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.

Data Files

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages