Skip to content

Latest commit

 

History

History
88 lines (55 loc) · 2.56 KB

README.md

File metadata and controls

88 lines (55 loc) · 2.56 KB

Monoalphabet Cipher Breaker

Python License: MIT GitHub issues GitHub stars

This repository contains a Python program for decoding a substitution cipher text using frequency analysis and letter substitution.

Getting Started

These instructions will get you a copy of the project up and running on your local machine.

Prerequisites

Python 3.9 or above.

Installation

Clone this repository

git clone https://github.com/danielfeitopin/monoalphabet-cipher-breaker.git

Change directory to the cloned repository

cd monoalphabet-cipher-breaker

Usage

The program can be run using the following commands:

Linux

python monoalphabet_breaker.py <path_to_cipher_file>

Windows

monoalphabet_breaker.py <path_to_cipher_file>

How It Works

The program performs the following steps:

  • Reads the cipher text file.
  • Analyzes the text for letter frequencies and statistics.
  • Prompts the user for substitution commands to decode the text.
  • Displays the substituted text and the substitution table.

Help

Commands:
help: Show this help menu.
set a b: Includes 'a' as the plain text key with value 'b' in the confirmed dict.
unset a: Removes key 'a' from confirmed dict.
exit: Quit the program.

Contributing

Contributions are welcome! If you have improvements, bug fixes, or new modules to add, feel free to submit a pull request.

License

The content of this repository is licensed under the MIT License.

Contact

Feel free to get in touch with me!

GitHub LinkedIn