Code Monkey home page Code Monkey logo

cs344-prog4's Introduction

cs344-prog4

Implementation of a One Time Pad (OTP) for CS344. It encrypts and decrypts plaintext into ciphertext, using a randomized key. Compile script 'compileall' provided.

It consists of 5 small programs:

*) otp_enc_d: Performs the actual encoding. Runs in the background as a daemon. Listens on a particular port for the                       plaintext and the key. When a connection is made to otp_enc, it forks off a seperate process immediately so
              that it can handle concurrent connections. 
                  *) Syntax: otp_enc_d <listening_port> & 
              
*) otp_enc: Connects to otp_enc_d and asks it to perform a onetime pad style encryption as above. When it receives the 
              encrypted text, it outputs to stdout.
                  *) Syntax: otp_enc <plaintext_file_name> <key_file_name> <port> 
              
*) otp_dec_d: Performs exactly like otp_enc_d except that it decrpyts the ciphertext given to it.
                  *) Syntax: otp_dec_d <listening_port> & 

*) otp_dec: Performs excatly like otp_enc except that it asks otp_dec_d to decrypt ciphertext using a passed in ciphertet
              and key.
                  *) Syntax: otp_dec <plaintext_file_name> <key_file_name> <port>
                  
*) keygen: Generates a randomized key of specified length using the 26 capital letters and the space character.
                  *) Syntax: keygen <character_length>

Plaintext files provided for testing.

cs344-prog4's People

Contributors

solomreb avatar

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.