Coder Social home page Coder Social logo

decipher's Introduction

Decipher

A Java-based deciphering program ported over to Python via j2py. Licensed under the MIT License.

Original source code is based off a final project done for CS167 - Introduction to Cryptography while attending UCI.

The program uses a word-count pattern-matching lookup strategy to find the best key mapping to decode the provided cipher text. The cipher text is based off of the provided literary source files which are used to decipher the text.

Usage

This page describes how to use both versions of the Decipher program.

Java

JDK6 was used to compile and run the code with the following commands:

$ javac *.java

Once compiled, you can run the code by specifying the required arguments:

$ java Decipher [CIPHERPATH] [TIMELIMIT]

Options and Arguments

The literary source files are assumed to be named source1.txt, source2.txt, and source3.txt located in the same dir as the code

  • [CIPHERPATH]

    Read the cipher text from the given file path.

  • [TIMELIMIT]

    Optionally specify the time limit in milliseconds.

Python

Python 2.7.2 was used to port and execute the code:

$ python Decipher.py [SOURCEFILES] [CIPHERPATH] [OPTIONS]

Options and Arguments

  • [SOURCEFILES] Specify one or more source files to decipher the text from.

  • --cp CIPHERPATH Specify the cipher text file using the --cp tag.

  • --tl TIMELIMIT Optionally specify the time limit in milliseconds.

Note

This is not a stable version so use at your own discretion.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.